File tree 2 files changed +2
-1
lines changed
cmd/postgres_exporter/tests/docker-postgres-replication
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ FROM postgres:{{VERSION}}
2
2
MAINTAINER Daniel Dent (https://www.danieldent.com)
3
3
ENV PG_MAX_WAL_SENDERS 8
4
4
ENV PG_WAL_KEEP_SEGMENTS 8
5
+ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y inetutils-ping
5
6
COPY setup-replication.sh /docker-entrypoint-initdb.d/
6
7
COPY docker-entrypoint.sh /docker-entrypoint.sh
7
8
RUN 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
36
36
if [ " x$REPLICATE_FROM " == " x" ]; then
37
37
eval " gosu postgres initdb $POSTGRES_INITDB_ARGS "
38
38
else
39
- until ping -c 1 -W 1 ${REPLICATE_FROM}
39
+ until /bin/ ping -c 1 -W 1 ${REPLICATE_FROM}
40
40
do
41
41
echo " Waiting for master to ping..."
42
42
sleep 1s
You can’t perform that action at this time.
0 commit comments