dump current state (wip-ish)
This commit is contained in:
parent
0124c35472
commit
51fb1c9f26
46 changed files with 3749 additions and 0 deletions
22
scripts/app
Executable file
22
scripts/app
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh -eu
|
||||
|
||||
cd "$RUN_DIR"
|
||||
|
||||
image=$(cat docker/.dockerimage)
|
||||
|
||||
if [ -z "$image" ]; then
|
||||
echo >&2 'image name not found.'
|
||||
exit 2
|
||||
fi
|
||||
|
||||
set -x
|
||||
|
||||
"$RUN_BIN" build
|
||||
|
||||
docker run \
|
||||
-it --rm \
|
||||
-v "$PWD"/data:/data:rw \
|
||||
-v "$PWD"/hotdog:/var/hotdog:ro \
|
||||
-v "$PWD"/postillon:/var/postillon:ro \
|
||||
-v "$PWD"/feeder:/var/feeder:ro \
|
||||
"$image":latest "$@"
|
||||
15
scripts/build
Executable file
15
scripts/build
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh -eu
|
||||
|
||||
cd "$RUN_DIR"
|
||||
|
||||
contextdir="$RUN_DIR"/docker
|
||||
image=$(cat "$contextdir"/.dockerimage)
|
||||
|
||||
if [ -z "$image" ]; then
|
||||
echo >&2 'image name not found.'
|
||||
exit 2
|
||||
fi
|
||||
|
||||
set -x
|
||||
|
||||
docker build "$@" --tag "$image":latest "$contextdir"
|
||||
11
scripts/lint
Executable file
11
scripts/lint
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
if [ "$1" = '--fix' ]; then
|
||||
set -x
|
||||
black .
|
||||
isort --profile black .
|
||||
else
|
||||
set -x
|
||||
black --check .
|
||||
isort --profile black --check .
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue