File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ COPY backup/archive_command.sh archive_command.sh
1010RUN chmod +x make_basebackup.sh
1111RUN chmod +x archive_command.sh
1212
13- # Install wal-g (used by backup scripts)
13+ # Install wal-g (used by backup/recovery scripts)
1414RUN apt-get update && apt-get install -y wget
1515RUN wget https://github.com/wal-g/wal-g/releases/download/v0.2.9/wal-g.linux-amd64.tar.gz
1616RUN tar -zxvf wal-g.linux-amd64.tar.gz
Original file line number Diff line number Diff line change @@ -9,11 +9,16 @@ COPY serviceAccountKey.json .
99RUN chmod +x /usr/local/bin/init_recovery.sh
1010RUN chmod +x restore_command.sh
1111
12- # Install wal-g (used by backup scripts).
12+ # Install wal-g (used by backup/restore scripts).
1313RUN apt-get update && apt-get install -y wget
1414RUN wget https://github.com/wal-g/wal-g/releases/download/v0.2.9/wal-g.linux-amd64.tar.gz
1515RUN tar -zxvf wal-g.linux-amd64.tar.gz
1616RUN 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.
1821ENTRYPOINT ["init_recovery.sh" ]
22+ # Run default Postgres/PostGIS entrypoint and
23+ # start Postgres.
1924CMD ["docker-entrypoint.sh" , "postgres" ]
Original file line number Diff line number Diff line change @@ -10,5 +10,5 @@ mv /recovery.conf /var/lib/postgresql/mapswipe/
1010chown -R postgres:postgres /var/lib/postgresql/mapswipe
1111chmod 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").
1414exec " $@ "
You can’t perform that action at this time.
0 commit comments