Skip to content

Commit

Permalink
Upgrade to postgres 14 postgis 3.3 in docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentS committed Oct 12, 2022
1 parent 1b62d31 commit c9888f1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions postgres/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mdillon/postgis
FROM postgis/postgis:14-3.3

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

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

# Do a basebackup of postgres every day
RUN echo "@daily bash /make_basebackup.sh" | crontab -
# TODO: Do a basebackup of postgres every day
# RUN echo "@daily bash /make_basebackup.sh" | crontab -
# Use following command to append job to cron
# CMD (crontab -l && echo "@daily bash ~/make_basebackup.sh") | crontab -
2 changes: 1 addition & 1 deletion postgres/Dockerfile-dev
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Dockerfile is for development purposes.
# Backups are disabled.

FROM mdillon/postgis
FROM postgis/postgis:14-3.3

COPY initdb.sql docker-entrypoint-initdb.d/
2 changes: 1 addition & 1 deletion postgres/recovery/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Based on latest stable postgres.
FROM mdillon/postgis
FROM postgis/postgis:14-3.3

COPY init_recovery.sh /usr/local/bin/
COPY restore_command.sh .
Expand Down

0 comments on commit c9888f1

Please sign in to comment.