summaryrefslogtreecommitdiffstats
path: root/docker/templates
diff options
context:
space:
mode:
authorTristan Storch <tstorch@math.uni-bielefeld.de>2014-08-29 18:20:15 +0200
committerTristan Storch <tstorch@math.uni-bielefeld.de>2014-08-31 21:00:19 +0200
commitd1a2228f1cc1b0bec7023d226077e4002c07112a (patch)
tree7eed4c06a198972dd907806bb1df8c3c2f1a45d5 /docker/templates
parent2886eb76b69102f7c2fc7db3516567c677148057 (diff)
downloadgitea-d1a2228f1cc1b0bec7023d226077e4002c07112a.tar.gz
gitea-d1a2228f1cc1b0bec7023d226077e4002c07112a.zip
Docker mix and match setup
Rewrite of the docker setup. Now uses fig to manage containers and container linkage. The base is a block based mix and match, which will give you the possibility to easily test all configurations.
Diffstat (limited to 'docker/templates')
-rw-r--r--docker/templates/init_gogs.sh.tpl12
1 files changed, 12 insertions, 0 deletions
diff --git a/docker/templates/init_gogs.sh.tpl b/docker/templates/init_gogs.sh.tpl
new file mode 100644
index 0000000000..26cff4e501
--- /dev/null
+++ b/docker/templates/init_gogs.sh.tpl
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+if [ ! -d "$DIRECTORY" ]; then
+ mkdir -p $GOGS_CUSTOM_CONF_PATH
+
+echo "
+{{ CONFIG }}
+" >> $GOGS_CUSTOM_CONF
+
+fi
+
+exec "$@"