Skip to content

Commit bb9f3af

Browse files
authored
Add support for PostgreSQL 16, drop 11 (eeshugerman#39)
* Add support for PostgreSQL 16 This requires Alpine 3.19 * Drop support for PostgreSQL 11 Version 11 has reached end-of-life (EOL) https://www.postgresql.org/support/versioning/ * Install aws-cli via apk instead of pip3 This removes python3 and py3-pip as explicit dependencies. Python is still installed as a derived dependency. This fixes building on Alpine 3.19
1 parent aca41c2 commit bb9f3af

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

.github/workflows/build-and-push-images.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111
strategy:
1212
matrix:
1313
include:
14-
- { postgres: 11, alpine: '3.10' }
1514
- { postgres: 12, alpine: '3.12' }
1615
- { postgres: 13, alpine: '3.14' }
1716
- { postgres: 14, alpine: '3.16' }
1817
- { postgres: 15, alpine: '3.17' }
18+
- { postgres: 16, alpine: '3.19' }
1919

2020
steps:
2121
- name: Checkout repository

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ This project provides Docker images to periodically back up a PostgreSQL databas
66
```yaml
77
services:
88
postgres:
9-
image: postgres:13
9+
image: postgres:16
1010
environment:
1111
POSTGRES_USER: user
1212
POSTGRES_PASSWORD: password
1313

1414
backup:
15-
image: eeshugerman/postgres-backup-s3:15
15+
image: eeshugerman/postgres-backup-s3:16
1616
environment:
1717
SCHEDULE: '@weekly' # optional
1818
BACKUP_KEEP_DAYS: 7 # optional
@@ -28,7 +28,7 @@ services:
2828
POSTGRES_PASSWORD: password
2929
```
3030
31-
- Images are tagged by the major PostgreSQL version supported: `11`, `12`, `13`, `14`, or `15`.
31+
- Images are tagged by the major PostgreSQL version supported: `12`, `13`, `14`, `15` or `16`.
3232
- The `SCHEDULE` variable determines backup frequency. See go-cron schedules documentation [here](http://godoc.org/github.com/robfig/cron#hdr-Predefined_schedules). Omit to run the backup immediately and then exit.
3333
- If `PASSPHRASE` is provided, the backup will be encrypted using GPG.
3434
- Run `docker exec <container name> sh backup.sh` to trigger a backup ad-hoc.

src/install.sh

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ apk add postgresql-client
1111
# install gpg
1212
apk add gnupg
1313

14-
apk add python3
15-
apk add py3-pip # separate package on edge only
16-
pip3 install awscli
14+
apk add aws-cli
1715

1816
# install go-cron
1917
apk add curl

0 commit comments

Comments
 (0)