Skip to content

Commit 983a26b

Browse files
author
Matthew Fisher
committed
chore(database): bump confd to v0.8
1 parent a46078a commit 983a26b

17 files changed

Lines changed: 14 additions & 34 deletions

database/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ RUN curl -sSL -o /usr/local/bin/etcdctl https://s3-us-west-2.amazonaws.com/opdem
1010
&& chmod +x /usr/local/bin/etcdctl
1111

1212
# install confd
13-
RUN curl -sSL -o /usr/local/bin/confd https://s3-us-west-2.amazonaws.com/opdemand/confd-v0.5.0-json \
13+
RUN curl -sSL -o /usr/local/bin/confd https://github.com/kelseyhightower/confd/releases/download/v0.8.0/confd-0.8.0-linux-amd64 \
1414
&& chmod +x /usr/local/bin/confd
1515

1616
ADD build.sh /tmp/build.sh

database/bin/boot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ etcd_set_default name ${PG_USER_DB:-deis}
4949
etcd_set_default bucketName ${BUCKET_NAME}
5050

5151
# wait for confd to run once and install initial templates
52-
until confd -onetime -node $ETCD -config-file /app/confd.toml; do
52+
until confd -onetime -node $ETCD -confdir /app --interval 5 --quiet; do
5353
echo "database: waiting for confd to write initial templates..."
5454
sleep $(($ETCD_TTL/2)) # sleep for half the TTL
5555
done
@@ -102,7 +102,7 @@ function on_exit() {
102102
trap on_exit INT TERM
103103

104104
# spawn confd in the background to update services based on etcd changes
105-
confd -node $ETCD -config-file /app/confd.toml &
105+
confd -node $ETCD -confdir /app --interval 5 --quiet &
106106
CONFD_PID=$!
107107

108108
# wait for the service to become available

database/bin/check

Lines changed: 0 additions & 8 deletions
This file was deleted.

database/conf.d/AWS_ACCESS_KEY_ID.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ mode = "0640"
77
keys = [
88
"/deis/store/gateway",
99
]
10-
check_cmd = "/app/bin/check {{ .src }}"

database/conf.d/AWS_SECRET_ACCESS_KEY.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ mode = "0640"
77
keys = [
88
"/deis/store/gateway",
99
]
10-
check_cmd = "/app/bin/check {{ .src }}"

database/conf.d/WALE_S3_ENDPOINT.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ mode = "0640"
77
keys = [
88
"/deis/store/gateway",
99
]
10-
check_cmd = "/app/bin/check {{ .src }}"

database/conf.d/WALE_S3_PREFIX.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ keys = [
88
"/deis/store/gateway",
99
"/deis/database",
1010
]
11-
check_cmd = "/app/bin/check {{ .src }}"

database/conf.d/pg_hba.conf.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ mode = "0640"
77
keys = [
88
"/deis/database",
99
]
10-
check_cmd = "/app/bin/check {{ .src }}"
1110
reload_cmd = "/usr/local/bin/reload"

database/conf.d/postgresql.conf.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ mode = "0644"
77
keys = [
88
"/deis/database",
99
]
10-
check_cmd = "/app/bin/check {{ .src }}"
1110
reload_cmd = "/usr/local/bin/reload"

database/conf.d/reload.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ mode = "0755"
77
keys = [
88
"/deis/database",
99
]
10-
check_cmd = "/app/bin/check {{ .src }}"
1110
reload_cmd = "/usr/local/bin/reload"

0 commit comments

Comments
 (0)