From 758952d7e0134eb10e4c544c492d9589ef8ccc2b Mon Sep 17 00:00:00 2001 From: churl Date: Thu, 20 Jan 2022 23:16:51 +0100 Subject: [PATCH] add launchscript --- README.md | 2 ++ launch.sh | 3 +++ 2 files changed, 5 insertions(+) create mode 100755 launch.sh diff --git a/README.md b/README.md index 7c7ad54..9930655 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,5 @@ When running a docker container an ".env"-file can be loaded with "--env-file .e When run locally the quiz should be located in the same directory as the script. When run from a docker container the folder containing the quiz should be mountet to "/quiz/" inside the container with "-v folder:/quiz". + +docker run -d --env-file .env --mount src=/root/QuizBot/quizes,target=/quiz,type=bind registry.gitlab.com/churl/quizbot:latest diff --git a/launch.sh b/launch.sh new file mode 100755 index 0000000..584bc40 --- /dev/null +++ b/launch.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +docker run -d --env-file .env --mount src=/root/QuizBot/quizes,target=/quiz,type=bind registry.gitlab.com/churl/quizbot