Skip to content

Commit 0d03452

Browse files
author
matthias_schaub
committed
Add comments
1 parent 0d11435 commit 0d03452

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

postgres/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ COPY backup/archive_command.sh archive_command.sh
1010
RUN chmod +x make_basebackup.sh
1111
RUN chmod +x archive_command.sh
1212

13-
# Install wal-g (used by backup scripts)
13+
# Install wal-g (used by backup/recovery scripts)
1414
RUN apt-get update && apt-get install -y wget
1515
RUN wget https://github.com/wal-g/wal-g/releases/download/v0.2.9/wal-g.linux-amd64.tar.gz
1616
RUN tar -zxvf wal-g.linux-amd64.tar.gz

postgres/recovery/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,16 @@ COPY serviceAccountKey.json .
99
RUN chmod +x /usr/local/bin/init_recovery.sh
1010
RUN chmod +x restore_command.sh
1111

12-
# Install wal-g (used by backup scripts).
12+
# Install wal-g (used by backup/restore scripts).
1313
RUN apt-get update && apt-get install -y wget
1414
RUN wget https://github.com/wal-g/wal-g/releases/download/v0.2.9/wal-g.linux-amd64.tar.gz
1515
RUN tar -zxvf wal-g.linux-amd64.tar.gz
1616
RUN mv wal-g /usr/local/bin/wal-g
1717

18+
# Restore base backup,
19+
# set user permissions and
20+
# copy recovery.conf into data cluster.
1821
ENTRYPOINT ["init_recovery.sh"]
22+
# Run default Postgres/PostGIS entrypoint and
23+
# start Postgres.
1924
CMD ["docker-entrypoint.sh", "postgres"]

postgres/recovery/init_recovery.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ mv /recovery.conf /var/lib/postgresql/mapswipe/
1010
chown -R postgres:postgres /var/lib/postgresql/mapswipe
1111
chmod 700 /var/lib/postgresql/mapswipe
1212

13-
# execute command given in Dockerfile: CMD ["docker-entrypoint.sh", "postgres"]
13+
# Execute command given in Dockerfile ("docker-entrypoint.sh", "postgres").
1414
exec "$@"

0 commit comments

Comments
 (0)