From dbf611fdddc314f98612ae9f3cb873774972f87d Mon Sep 17 00:00:00 2001 From: churl Date: Thu, 20 Jan 2022 23:22:13 +0100 Subject: [PATCH] add launchscript --- README.md | 2 +- launch.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100755 launch.sh diff --git a/README.md b/README.md index 161387f..8d41c3d 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,4 @@ The environment variables "DISCORD_TOKEN" and "DISCORD_GUILD" must be set to run When run locally the boat loads an existing ".env"-file from the same directory as the script. When running a docker container an ".env"-file can be loaded with "--env-file .env". -docker run -d --env-file .env --mount src=/root/HeidiBot/voicelines,target=/sounds,type=bind registry.gitlab.com/churl/heidibot:latest +docker run -d --env-file .env --mount src=/root/HeidiBot/voicelines,target=/sounds,type=bind --name heidibot registry.gitlab.com/churl/heidibot diff --git a/launch.sh b/launch.sh new file mode 100755 index 0000000..e5f543c --- /dev/null +++ b/launch.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +docker run -d --env-file .env --mount src=/root/HeidiBot/voicelines,target=/sounds,type=bind --name heidibot registry.gitlab.com/churl/heidibot