1
0
mirror of https://github.com/rlister/dockerfiles.git synced 2025-12-11 00:36:27 +00:00

use default confdir of /etc/confd

This commit is contained in:
Richard Lister
2015-02-17 16:08:13 -05:00
parent ae18e9328e
commit 4c95ce919b

View File

@@ -7,14 +7,14 @@ set -eo pipefail
export ETCD=${ETCD:-http://172.17.42.1:4001}
## wait until we can make initial nginx config
until ./confd -verbose -onetime -node $ETCD -confdir /app ; do
until ./confd -verbose -onetime -node $ETCD ; do
echo "confd waiting to create initial nginx config"
sleep 5
done
## run confd to poll etcd for changes
echo "confd polling etcd ..."
./confd -verbose -interval 10 -node $ETCD -confdir /app &
./confd -verbose -interval 10 -node $ETCD &
## run nginx in foreground
nginx -g 'daemon off;'