refactor to make session handling more automatic

This commit is contained in:
ducklet 2021-01-30 15:14:23 +01:00
parent f4cf26a33e
commit 476f3d7a49
3 changed files with 48 additions and 23 deletions

View file

@ -3,12 +3,14 @@
image=$(cat "$RUN_DIR"/.dockerimage)
tag=latest
pubport=8765
set -x
exec docker run --init --name dumpr-quiz-ws \
--rm \
--read-only \
--label org.dumpr.quiz.service=ws \
-p 8765:8765 \
-p "$pubport":8765 \
-v "$RUN_DIR":/var/quiz:ro \
"$image":"$tag"