File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,3 +10,4 @@ WORKDIR /app
1010CMD ["/app/bin/boot" ]
1111EXPOSE 6379
1212ADD . /app
13+ ADD redis.conf /etc/redis/redis.conf
Original file line number Diff line number Diff line change @@ -29,12 +29,6 @@ if ! etcdctl --no-sync -C $ETCD ls $ETCD_PATH >/dev/null 2>&1 ; then
2929 etcdctl --no-sync -C $ETCD mkdir $ETCD_PATH > /dev/null 2>&1 || true
3030fi
3131
32- # wait for confd to run once and install initial templates
33- until confd -onetime -node $ETCD -config-file /app/confd.toml; do
34- echo " cache: waiting for confd to write initial templates..."
35- sleep $(( $ETCD_TTL / 2 )) # sleep for half the TTL
36- done
37-
3832# spawn the service in the background
3933cd /var/lib/redis
4034sudo -u redis /usr/bin/redis-server /etc/redis/redis.conf &
@@ -48,10 +42,6 @@ function on_exit() {
4842}
4943trap on_exit INT TERM
5044
51- # spawn confd in the background to update services based on etcd changes
52- confd -node $ETCD -config-file /app/confd.toml &
53- CONFD_PID=$!
54-
5545echo deis-cache running...
5646
5747# publish the service to etcd using the injected PORT
Load Diff This file was deleted.
Load Diff This file was deleted.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments