Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/docker/start
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-02-01 08:57:06 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2020-02-01 08:57:06 +0100
commitada3beb0a6c649bd9bfc6a87b2fe69ee8ae563f7 (patch)
treedf74b326c096fad4d74b90988caed727c15847ef /docker/start
initial checkin
Diffstat (limited to 'docker/start')
-rwxr-xr-xdocker/start12
1 files changed, 12 insertions, 0 deletions
diff --git a/docker/start b/docker/start
new file mode 100755
index 0000000..921b80f
--- /dev/null
+++ b/docker/start
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+
+pushd $(dirname $BASH_SOURCE)
+
+if [[ -n "$(docker-compose ps -q)" ]]; then
+ echo "Service already running" >&2
+ exit 1
+fi
+
+docker-compose up --build -d
+docker-compose exec db mysqladmin -uroot --wait=10 ping
+docker-compose exec db mysqladmin -uroot create fluxbb