File tree Expand file tree Collapse file tree 3 files changed +2
-12
lines changed
docker-entrypoint-initdb.d Expand file tree Collapse file tree 3 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ RUN mkdir -p $WALE_ENVDIR \
1616 lzo \
1717 pv \
1818 util-linux \
19+ ca-certificates \
1920 python3=3.5.6-r0 \
2021 && pip3 install --upgrade pip setuptools \
2122 && pip install --disable-pip-version-check --no-cache-dir \
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ export BACKUPS_TO_RETAIN=${BACKUPS_TO_RETAIN:-5}
55echo " Performing a base backup..."
66if [[ -f " $PGDATA /recovery.conf" ]] ; then
77 echo " Database is currently recovering from a backup. Aborting"
8+ sleep 9
89else
910 # perform a backup
1011 envdir " $WALE_ENVDIR " wal-e backup-push " $PGDATA "
Original file line number Diff line number Diff line change 5353 su-exec postgres pg_ctl -D " $PGDATA " \
5454 -o " -c listen_addresses=''" \
5555 -w start
56-
57- echo " Waiting for recovery completion..."
58- while [ ! -f " $PGDATA /recovery.done" ]
59- do
60- sleep 2
61- done
62- su-exec postgres pg_ctl -D " $PGDATA " \
63- -o " -c listen_addresses=''" \
64- -w restart
6556fi
6657
67- echo " Performing an initial backup..."
68- su-exec postgres envdir " $WALE_ENVDIR " wal-e backup-push " $PGDATA "
69-
7058# ensure $PGDATA has the right permissions
7159chown -R postgres:postgres " $PGDATA "
7260chmod 0700 " $PGDATA "
You can’t perform that action at this time.
0 commit comments