diff --git a/postgres-12-image/Dockerfile b/postgres-12-image/Dockerfile index 9b74e014a..e85a9028f 100644 --- a/postgres-12-image/Dockerfile +++ b/postgres-12-image/Dockerfile @@ -20,13 +20,16 @@ #!BuildTag: opensuse/postgres:12 #!BuildTag: opensuse/postgres:%%pg_minor_version%% -FROM opensuse/tumbleweed:latest +FROM opensuse/bci/bci-micro:latest AS target +FROM opensuse/tumbleweed:latest AS builder +COPY --from=target / /target RUN set -euo pipefail; \ - zypper -n install --no-recommends libpq5 postgresql12-server findutils; \ + zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends libpq5 postgresql12-server findutils coreutils sed util-linux; \ zypper -n clean; \ rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2} - +FROM opensuse/bci/bci-micro:latest +COPY --from=builder /target / # Define labels according to https://en.opensuse.org/Building_derived_containers # labelprefix=org.opensuse.application.postgres LABEL org.opencontainers.image.title="openSUSE Tumbleweed PostgreSQL 12" diff --git a/postgres-12-image/postgres-12-image.changes b/postgres-12-image/postgres-12-image.changes index 333cae51d..8706b1621 100644 --- a/postgres-12-image/postgres-12-image.changes +++ b/postgres-12-image/postgres-12-image.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Nov 14 17:06:30 UTC 2024 - SUSE Update Bot + +- switch to multistage build + ------------------------------------------------------------------- Wed Oct 30 18:28:27 UTC 2024 - SUSE Update Bot diff --git a/postgres-13-image/Dockerfile b/postgres-13-image/Dockerfile index 5eea93b7b..f038e8564 100644 --- a/postgres-13-image/Dockerfile +++ b/postgres-13-image/Dockerfile @@ -20,13 +20,16 @@ #!BuildTag: opensuse/postgres:13 #!BuildTag: opensuse/postgres:%%pg_minor_version%% -FROM opensuse/tumbleweed:latest +FROM opensuse/bci/bci-micro:latest AS target +FROM opensuse/tumbleweed:latest AS builder +COPY --from=target / /target RUN set -euo pipefail; \ - zypper -n install --no-recommends libpq5 postgresql13-server findutils; \ + zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends libpq5 postgresql13-server findutils coreutils sed util-linux; \ zypper -n clean; \ rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2} - +FROM opensuse/bci/bci-micro:latest +COPY --from=builder /target / # Define labels according to https://en.opensuse.org/Building_derived_containers # labelprefix=org.opensuse.application.postgres LABEL org.opencontainers.image.title="openSUSE Tumbleweed PostgreSQL 13" diff --git a/postgres-13-image/postgres-13-image.changes b/postgres-13-image/postgres-13-image.changes index 4f4249938..1749f9a5a 100644 --- a/postgres-13-image/postgres-13-image.changes +++ b/postgres-13-image/postgres-13-image.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Nov 14 17:06:30 UTC 2024 - SUSE Update Bot + +- switch to multistage build + ------------------------------------------------------------------- Wed Oct 30 18:28:27 UTC 2024 - SUSE Update Bot diff --git a/postgres-14-image/Dockerfile b/postgres-14-image/Dockerfile index db056efbe..74f40d0cf 100644 --- a/postgres-14-image/Dockerfile +++ b/postgres-14-image/Dockerfile @@ -20,13 +20,16 @@ #!BuildTag: opensuse/postgres:14 #!BuildTag: opensuse/postgres:%%pg_minor_version%% -FROM opensuse/tumbleweed:latest +FROM opensuse/bci/bci-micro:latest AS target +FROM opensuse/tumbleweed:latest AS builder +COPY --from=target / /target RUN set -euo pipefail; \ - zypper -n install --no-recommends libpq5 postgresql14-server findutils; \ + zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends libpq5 postgresql14-server findutils coreutils sed util-linux; \ zypper -n clean; \ rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2} - +FROM opensuse/bci/bci-micro:latest +COPY --from=builder /target / # Define labels according to https://en.opensuse.org/Building_derived_containers # labelprefix=org.opensuse.application.postgres LABEL org.opencontainers.image.title="openSUSE Tumbleweed PostgreSQL 14" diff --git a/postgres-14-image/postgres-14-image.changes b/postgres-14-image/postgres-14-image.changes index d77ad99db..b7cad94b8 100644 --- a/postgres-14-image/postgres-14-image.changes +++ b/postgres-14-image/postgres-14-image.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Nov 14 17:06:30 UTC 2024 - SUSE Update Bot + +- switch to multistage build + ------------------------------------------------------------------- Wed Oct 30 18:28:27 UTC 2024 - SUSE Update Bot diff --git a/postgres-15-image/Dockerfile b/postgres-15-image/Dockerfile index f884dcc65..f3dbb7d41 100644 --- a/postgres-15-image/Dockerfile +++ b/postgres-15-image/Dockerfile @@ -20,13 +20,16 @@ #!BuildTag: opensuse/postgres:15 #!BuildTag: opensuse/postgres:%%pg_minor_version%% -FROM opensuse/tumbleweed:latest +FROM opensuse/bci/bci-micro:latest AS target +FROM opensuse/tumbleweed:latest AS builder +COPY --from=target / /target RUN set -euo pipefail; \ - zypper -n install --no-recommends libpq5 postgresql15-server findutils; \ + zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends libpq5 postgresql15-server findutils coreutils sed util-linux; \ zypper -n clean; \ rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2} - +FROM opensuse/bci/bci-micro:latest +COPY --from=builder /target / # Define labels according to https://en.opensuse.org/Building_derived_containers # labelprefix=org.opensuse.application.postgres LABEL org.opencontainers.image.title="openSUSE Tumbleweed PostgreSQL 15" diff --git a/postgres-15-image/postgres-15-image.changes b/postgres-15-image/postgres-15-image.changes index dfb7307cd..9f5e3a9bc 100644 --- a/postgres-15-image/postgres-15-image.changes +++ b/postgres-15-image/postgres-15-image.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Nov 14 17:06:30 UTC 2024 - SUSE Update Bot + +- switch to multistage build + ------------------------------------------------------------------- Wed Oct 30 18:28:27 UTC 2024 - SUSE Update Bot diff --git a/postgres-16-image/Dockerfile b/postgres-16-image/Dockerfile index a1e8f666f..b882bcc6e 100644 --- a/postgres-16-image/Dockerfile +++ b/postgres-16-image/Dockerfile @@ -21,13 +21,16 @@ #!BuildTag: opensuse/postgres:%%pg_minor_version%% #!BuildTag: opensuse/postgres:latest -FROM opensuse/tumbleweed:latest +FROM opensuse/bci/bci-micro:latest AS target +FROM opensuse/tumbleweed:latest AS builder +COPY --from=target / /target RUN set -euo pipefail; \ - zypper -n install --no-recommends libpq5 postgresql16-server findutils; \ + zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends libpq5 postgresql16-server findutils coreutils sed util-linux; \ zypper -n clean; \ rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2} - +FROM opensuse/bci/bci-micro:latest +COPY --from=builder /target / # Define labels according to https://en.opensuse.org/Building_derived_containers # labelprefix=org.opensuse.application.postgres LABEL org.opencontainers.image.title="openSUSE Tumbleweed PostgreSQL 16" diff --git a/postgres-16-image/postgres-16-image.changes b/postgres-16-image/postgres-16-image.changes index b705f784b..fa17fa6c5 100644 --- a/postgres-16-image/postgres-16-image.changes +++ b/postgres-16-image/postgres-16-image.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Nov 14 17:06:30 UTC 2024 - SUSE Update Bot + +- switch to multistage build + ------------------------------------------------------------------- Wed Oct 30 18:28:27 UTC 2024 - SUSE Update Bot diff --git a/postgres-17-image/Dockerfile b/postgres-17-image/Dockerfile index f00de865f..4bbbeb015 100644 --- a/postgres-17-image/Dockerfile +++ b/postgres-17-image/Dockerfile @@ -20,13 +20,16 @@ #!BuildTag: opensuse/postgres:17 #!BuildTag: opensuse/postgres:%%pg_minor_version%% -FROM opensuse/tumbleweed:latest +FROM opensuse/bci/bci-micro:latest AS target +FROM opensuse/tumbleweed:latest AS builder +COPY --from=target / /target RUN set -euo pipefail; \ - zypper -n install --no-recommends libpq5 postgresql17-server findutils; \ + zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends libpq5 postgresql17-server findutils coreutils sed util-linux; \ zypper -n clean; \ rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2} - +FROM opensuse/bci/bci-micro:latest +COPY --from=builder /target / # Define labels according to https://en.opensuse.org/Building_derived_containers # labelprefix=org.opensuse.application.postgres LABEL org.opencontainers.image.title="openSUSE Tumbleweed PostgreSQL 17" diff --git a/postgres-17-image/postgres-17-image.changes b/postgres-17-image/postgres-17-image.changes index 4f7a153b3..41cf3af6a 100644 --- a/postgres-17-image/postgres-17-image.changes +++ b/postgres-17-image/postgres-17-image.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Nov 14 17:06:30 UTC 2024 - SUSE Update Bot + +- switch to multistage build + ------------------------------------------------------------------- Wed Oct 30 18:28:27 UTC 2024 - SUSE Update Bot