init with crummy buzzer & docker setup

so much boilerplate :O
This commit is contained in:
ducklet 2021-01-29 01:20:17 +01:00
commit f6bf544f54
23 changed files with 746 additions and 0 deletions

20
scripts/dev-http Executable file
View file

@ -0,0 +1,20 @@
#!/bin/sh -eu
image=$(cat "$RUN_DIR"/.dockerimage)
tag=latest
pubport=8080
set -x
# TODO would be better to mount dev config somewhere else & merge in code
exec docker run --init --name dumpr-quiz-http \
--rm \
--read-only \
--label org.dumpr.quiz.service=http \
-p "$pubport":8000 \
-v "$RUN_DIR":/var/quiz:ro \
-v "$RUN_DIR"/dev/config.js:/var/quiz/public/config.js:ro \
"$image":"$tag" \
python -m http.server -d public/ 8000