summaryrefslogtreecommitdiff
path: root/docker-run.sh
diff options
context:
space:
mode:
authorMarkus Witt <feuerrot@feuerrot.org>2019-04-13 23:49:49 +0200
committerMarkus Witt <feuerrot@feuerrot.org>2019-05-03 22:36:12 +0200
commit386d56a20e2ba1f98bde896897cc4e96b6dd75dc (patch)
tree69cf6b901afadc1fc11962ad927b9e89149e2fd7 /docker-run.sh
parent122e2a7b4a5a994b5a55bafd7304aa879f3bd17b (diff)
Add a basic docker file
Diffstat (limited to 'docker-run.sh')
-rwxr-xr-xdocker-run.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/docker-run.sh b/docker-run.sh
new file mode 100755
index 0000000..b438a19
--- /dev/null
+++ b/docker-run.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -eu
+
+if [ ! -f travelynx.conf ]
+then
+ echo "The configuration file is missing"
+ exit 1
+fi
+
+perl index.pl database migrate
+
+exec /usr/local/bin/hypnotoad -f index.pl \ No newline at end of file