select PostgreSQL major release more specifically

This commit is contained in:
Konstantin Demin 2024-06-23 23:06:07 +03:00
parent c9200b8d39
commit 1f56389cbd
Signed by: krd
GPG Key ID: 4D56F87A8BA65FD0
2 changed files with 8 additions and 0 deletions

View File

@ -66,6 +66,7 @@ ENV LANG=en_US.UTF8
ADD https://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc /etc/apt/keyrings/pgdg.gpg.bin
COPY /apt/sources.pgdg /etc/apt/sources.list.d/pgdg.sources
COPY /apt/preferences.pgdg /etc/apt/preferences.d/pgdg
RUN env -C /etc/apt/keyrings gpg-export.sh pgdg.gpg.bin pgdg.gpg.asc
COPY --from=postgresql-upstream /etc/postgresql-common/createcluster.conf /etc/postgresql-common/

7
apt/preferences.pgdg Normal file
View File

@ -0,0 +1,7 @@
Package: *
Pin: release a=bookworm-pgdg
Pin-Priority: 600
Package: src:postgresql-16
Pin: release a=bookworm-pgdg
Pin-Priority: 700