File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
cmd/postgres_exporter/tests/docker-postgres-replication Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ FROM postgres:{{VERSION}}
22MAINTAINER Daniel Dent (https://www.danieldent.com)
33ENV PG_MAX_WAL_SENDERS 8
44ENV PG_WAL_KEEP_SEGMENTS 8
5+ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y inetutils-ping
56COPY setup-replication.sh /docker-entrypoint-initdb.d/
67COPY docker-entrypoint.sh /docker-entrypoint.sh
78RUN chmod +x /docker-entrypoint-initdb.d/setup-replication.sh /docker-entrypoint.sh
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ if [ "$1" = 'postgres' ]; then
3636 if [ " x$REPLICATE_FROM " == " x" ]; then
3737 eval " gosu postgres initdb $POSTGRES_INITDB_ARGS "
3838 else
39- until ping -c 1 -W 1 ${REPLICATE_FROM}
39+ until /bin/ ping -c 1 -W 1 ${REPLICATE_FROM}
4040 do
4141 echo " Waiting for master to ping..."
4242 sleep 1s
You can’t perform that action at this time.
0 commit comments