Skip to content

Commit c9888f1

Browse files
committed
Upgrade to postgres 14 postgis 3.3 in docker image
1 parent 1b62d31 commit c9888f1

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

postgres/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mdillon/postgis
1+
FROM postgis/postgis:14-3.3
22

33
COPY initdb.sql docker-entrypoint-initdb.d/
44
COPY serviceAccountKey.json serviceAccountKey.json
@@ -16,11 +16,11 @@ RUN chmod +x archive_command.sh
1616

1717
# Install wal-g (used by backup/recovery scripts)
1818
RUN apt-get update && apt-get install -y wget
19-
RUN wget https://github.com/wal-g/wal-g/releases/download/v0.2.9/wal-g.linux-amd64.tar.gz
20-
RUN tar -zxvf wal-g.linux-amd64.tar.gz
21-
RUN mv wal-g /usr/local/bin/wal-g
19+
RUN wget https://github.com/wal-g/wal-g/releases/download/v2.0.1/wal-g-pg-ubuntu-20.04-amd64.tar.gz
20+
RUN tar -zxvf wal-g-pg-ubuntu-20.04-amd64.tar.gz
21+
RUN mv wal-g-pg-ubuntu-20.04-amd64 /usr/local/bin/wal-g
2222

23-
# Do a basebackup of postgres every day
24-
RUN echo "@daily bash /make_basebackup.sh" | crontab -
23+
# TODO: Do a basebackup of postgres every day
24+
# RUN echo "@daily bash /make_basebackup.sh" | crontab -
2525
# Use following command to append job to cron
2626
# CMD (crontab -l && echo "@daily bash ~/make_basebackup.sh") | crontab -

postgres/Dockerfile-dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This Dockerfile is for development purposes.
22
# Backups are disabled.
33

4-
FROM mdillon/postgis
4+
FROM postgis/postgis:14-3.3
55

66
COPY initdb.sql docker-entrypoint-initdb.d/

postgres/recovery/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Based on latest stable postgres.
2-
FROM mdillon/postgis
2+
FROM postgis/postgis:14-3.3
33

44
COPY init_recovery.sh /usr/local/bin/
55
COPY restore_command.sh .

0 commit comments

Comments
 (0)