init with crummy buzzer & docker setup
so much boilerplate :O
This commit is contained in:
commit
f6bf544f54
23 changed files with 746 additions and 0 deletions
20
scripts/dev-http
Executable file
20
scripts/dev-http
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue