Commit 1086b75 1 parent f854953 commit 1086b75 Copy full SHA for 1086b75
File tree 3 files changed +2
-12
lines changed
docker-entrypoint-initdb.d
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 \
16
16
lzo \
17
17
pv \
18
18
util-linux \
19
+ ca-certificates \
19
20
python3=3.5.6-r0 \
20
21
&& pip3 install --upgrade pip setuptools \
21
22
&& 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}
5
5
echo " Performing a base backup..."
6
6
if [[ -f " $PGDATA /recovery.conf" ]] ; then
7
7
echo " Database is currently recovering from a backup. Aborting"
8
+ sleep 9
8
9
else
9
10
# perform a backup
10
11
envdir " $WALE_ENVDIR " wal-e backup-push " $PGDATA "
Original file line number Diff line number Diff line change 53
53
su-exec postgres pg_ctl -D " $PGDATA " \
54
54
-o " -c listen_addresses=''" \
55
55
-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
65
56
fi
66
57
67
- echo " Performing an initial backup..."
68
- su-exec postgres envdir " $WALE_ENVDIR " wal-e backup-push " $PGDATA "
69
-
70
58
# ensure $PGDATA has the right permissions
71
59
chown -R postgres:postgres " $PGDATA "
72
60
chmod 0700 " $PGDATA "
You can’t perform that action at this time.
0 commit comments