Merge pull request #657 from arthurnn/CNAME_option

Add CNAME option
This commit is contained in:
Jeff Lindsay committed 2014-08-19 16:28:43 -05:00
commit 4e9d797d45
2 files changed
+10

No files matched your search

+6
View File
@@ -61,6 +61,12 @@ case "$1" in
oldid=$(< "$DOKKU_ROOT/$APP/CONTAINER")
fi
# CNAME
CNAME=$(docker run -i $IMAGE /bin/bash -c "if [[ -f /app/CNAME ]];then cat /app/CNAME; fi")
if [[ -n "$CNAME" ]]; then
echo "$CNAME" > "$DOKKU_ROOT/$APP/CNAME"
fi
# start the app
DOCKER_ARGS=$(: | pluginhook docker-args $APP)
id=$(docker run -d -p 5000 -e PORT=5000 $DOCKER_ARGS $IMAGE /bin/bash -c "/start web")