Browse Source

Update Alpine to 3.15 to support PostgreSQL 14 (#138)

* Update alpine from 3.9 to 3.15

This adds support for PostgreSQL 14

* Fix missing python packages

* Install aws-cli as package

* Installing the PostgreSQL client is sufficient
pull/140/head
Georg Ledermann 2 years ago
committed by GitHub
parent
commit
1e49b4634a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      postgres-backup-s3/Dockerfile
  2. 4
      postgres-backup-s3/install.sh
  3. 2
      postgres-restore-s3/Dockerfile
  4. 6
      postgres-restore-s3/install.sh

2
postgres-backup-s3/Dockerfile

@ -1,4 +1,4 @@
FROM alpine:3.11
FROM alpine:3.15
LABEL maintainer="Johannes Schickling <schickling.j@gmail.com>"
ADD install.sh install.sh

4
postgres-backup-s3/install.sh

@ -10,9 +10,7 @@ apk update
apk add postgresql-client
# install s3 tools
apk add python py2-pip
pip install awscli
apk del py2-pip
apk add aws-cli
# install go-cron
apk add curl

2
postgres-restore-s3/Dockerfile

@ -1,4 +1,4 @@
FROM alpine:3.7
FROM alpine:3.15
LABEL maintainer="Johannes Schickling <schickling.j@gmail.com>"
ADD install.sh install.sh

6
postgres-restore-s3/install.sh

@ -6,12 +6,10 @@ set -eo pipefail
apk update
# install pg_dump
apk add postgresql
apk add postgresql-client
# install s3 tools
apk add python py-pip
pip install awscli
apk del py-pip
apk add aws-cli
# cleanup
rm -rf /var/cache/apk/*
Loading…
Cancel
Save