Skip to content

Commit

Permalink
Update to debian bookworm
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Dittrich <[email protected]>
  • Loading branch information
jan-di committed May 28, 2024
1 parent 040b2df commit 6a19f5a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed
- Updated dependencies
- Use upstream apt repository of postgresql instead of the debian one.
- Switch from debian bullseye to debian bookworm

## [0.5.0] - 2023-02-07
### Added
Expand Down
11 changes: 9 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
FROM docker.io/library/python:3.9.18-bullseye
FROM docker.io/library/python:3.9.19-bookworm

LABEL jan-di.database-backup.instance_id="default"

# Add postgresql repository
RUN set -eu; \
mkdir -p /etc/apt/keyrings; \
wget --quiet -O /etc/apt/keyrings/pgdg.asc https://www.postgresql.org/media/keys/ACCC4CF8.asc; \
sh -c 'echo "deb [signed-by=/etc/apt/keyrings/pgdg.asc] https://apt.postgresql.org/pub/repos/apt bookworm-pgdg main" > /etc/apt/sources.list.d/pgdg.list'

ENV PYTHONFAULTHANDLER=1 \
PYTHONUNBUFFERED=1

# Install apt packages
RUN set -eux; \
apt-get update; \
apt-get install -y mariadb-client postgresql-client tzdata; \
apt-get install -y mariadb-client postgresql-client-16 tzdata; \
apt-get clean; \
rm -rf /var/lib/apt/lists/*; \
mkdir -p /dump
Expand Down

0 comments on commit 6a19f5a

Please sign in to comment.