From 1f56389cbdf4b2942fee9717de01d8ef8faf5f59 Mon Sep 17 00:00:00 2001 From: Konstantin Demin Date: Sun, 23 Jun 2024 23:06:07 +0300 Subject: [PATCH] select PostgreSQL major release more specifically --- Dockerfile.interim | 1 + apt/preferences.pgdg | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 apt/preferences.pgdg diff --git a/Dockerfile.interim b/Dockerfile.interim index f1d654c..ba01559 100644 --- a/Dockerfile.interim +++ b/Dockerfile.interim @@ -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/ diff --git a/apt/preferences.pgdg b/apt/preferences.pgdg new file mode 100644 index 0000000..771de59 --- /dev/null +++ b/apt/preferences.pgdg @@ -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