Skip to content

Commit

Permalink
chore: fix pgaudit naming scheme
Browse files Browse the repository at this point in the history
Signed-off-by: Niccolò Fei <[email protected]>
  • Loading branch information
NiccoloFei committed Jan 15, 2024
1 parent b458612 commit 0fea090
Show file tree
Hide file tree
Showing 30 changed files with 186 additions and 102 deletions.
9 changes: 6 additions & 3 deletions UBI/12/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ ARG TARGETARCH
RUN set -xe ; \
ARCH="${TARGETARCH}" ; \
base_url="https://download.postgresql.org/pub/repos/yum/reporpms" ; \
pg_audit_pkg="pgaudit14_12" ; \
case $ARCH in \
amd64) \
yum -y install "${base_url}/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm" ;; \
yum -y install "${base_url}/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm" ; \
if [ "12" -gt "15" ]; then pg_audit_pkg="pgaudit_12"; fi ;; \
arm64) \
yum -y install "${base_url}/EL-8-aarch64/pgdg-redhat-repo-latest.noarch.rpm" ;; \
yum -y install "${base_url}/EL-8-aarch64/pgdg-redhat-repo-latest.noarch.rpm" ; \
if [ "12" -gt "15" ]; then pg_audit_pkg="pgaudit_12"; fi ;; \
*) \
exit 1 ;; \
esac ; \
Expand All @@ -33,7 +36,7 @@ RUN set -xe ; \
postgresql12-server-12.17 \
postgresql12-libs-12.17 \
pg_failover_slots_12 \
pgaudit14_12 \
"$pg_audit_pkg" \
; \
rm -fr /tmp/* ; \
yum -y clean all --enablerepo='*'
Expand Down
12 changes: 7 additions & 5 deletions UBI/12/Dockerfile.multiarch
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,22 @@ RUN --mount=type=secret,id=cs_token \
case $ARCH in \
amd64) \
yum -y install "${base_url}/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm" ; \
curl -u token:$(cat /run/secrets/cs_token) -1sLf https://downloads.enterprisedb.com/basic/enterprise/setup.rpm.sh | bash ;; \
curl -u token:$(cat /run/secrets/cs_token) -1sLf https://downloads.enterprisedb.com/basic/enterprise/setup.rpm.sh | bash ; \
if [ "12" -gt "15" ]; then pg_audit_pkg="pgaudit_12"; fi ;; \
arm64) \
yum -y install "${base_url}/EL-8-aarch64/pgdg-redhat-repo-latest.noarch.rpm" ; \
curl -u token:$(cat /run/secrets/cs_token) -1sLf https://downloads.enterprisedb.com/basic/enterprise/setup.rpm.sh | bash ;; \
curl -u token:$(cat /run/secrets/cs_token) -1sLf https://downloads.enterprisedb.com/basic/enterprise/setup.rpm.sh | bash ; \
if [ "12" -gt "15" ]; then pg_audit_pkg="pgaudit_12"; fi ;; \
ppc64le) \
curl -u token:$(cat /run/secrets/cs_token) -1sLf https://downloads.enterprisedb.com/basic/enterprise/setup.rpm.sh | bash ; \
pg_failover_slots_pkg="edb-pg12-pg-failover-slots1" ; \
pg_audit_pkg="edb-pg12-pgaudit1" ; \
if [ "$PG_MAJOR" -gt "15" ]; then pg_audit_pkg="edb-pg12-pgaudit"; fi ;; \
if [ "12" -gt "15" ]; then pg_audit_pkg="edb-pg12-pgaudit12"; fi ;; \
s390x) \
curl -u token:$(cat /run/secrets/cs_token) -1sLf https://downloads.enterprisedb.com/basic/edb/setup.rpm.sh | bash ; \
pg_failover_slots_pkg="edb-pg12-pg-failover-slots1" ; \
pg_audit_pkg="edb-pg12-pgaudit1" ; \
if [ "$PG_MAJOR" -gt "15" ]; then pg_audit_pkg="edb-pg12-pgaudit"; fi ;; \
if [ "12" -gt "15" ]; then pg_audit_pkg="edb-pg12-pgaudit12"; fi ;; \
*) \
exit 1 ;; \
esac ; \
Expand All @@ -48,7 +50,7 @@ RUN --mount=type=secret,id=cs_token \
postgresql12-contrib-12.17 \
postgresql12-server-12.17 \
postgresql12-libs-12.17 \
"pg_audit_pkg" \
"$pg_audit_pkg" \
"$pg_failover_slots_pkg" \
; \
rm -fr /etc/yum.repos.d/enterprisedb-*.repo ; \
Expand Down
9 changes: 6 additions & 3 deletions UBI/12/Dockerfile.multilang
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ ARG TARGETARCH
RUN set -xe ; \
ARCH="${TARGETARCH}" ; \
base_url="https://download.postgresql.org/pub/repos/yum/reporpms" ; \
pg_audit_pkg="pgaudit14_12" ; \
case $ARCH in \
amd64) \
yum -y install "${base_url}/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm" ;; \
yum -y install "${base_url}/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm" ; \
if [ "12" -gt "15" ]; then pg_audit_pkg="pgaudit_12"; fi ;; \
arm64) \
yum -y install "${base_url}/EL-8-aarch64/pgdg-redhat-repo-latest.noarch.rpm" ;; \
yum -y install "${base_url}/EL-8-aarch64/pgdg-redhat-repo-latest.noarch.rpm" ; \
if [ "12" -gt "15" ]; then pg_audit_pkg="pgaudit_12"; fi ;; \
*) \
exit 1 ;; \
esac ; \
Expand All @@ -34,7 +37,7 @@ RUN set -xe ; \
postgresql12-server-12.17 \
postgresql12-libs-12.17 \
pg_failover_slots_12 \
pgaudit14_12 \
"$pg_audit_pkg" \
; \
rm -fr /tmp/* ; \
yum -y clean all --enablerepo='*'
Expand Down
9 changes: 6 additions & 3 deletions UBI/12/Dockerfile.postgis
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ ARG TARGETARCH
RUN set -xe ; \
ARCH="${TARGETARCH}" ; \
base_url="https://download.postgresql.org/pub/repos/yum/reporpms" ; \
pg_audit_pkg="pgaudit14_12" ; \
case $ARCH in \
amd64) \
yum -y install "${base_url}/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm" ;; \
yum -y install "${base_url}/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm" ; \
if [ "12" -gt "15" ]; then pg_audit_pkg="pgaudit_12"; fi ;; \
arm64) \
yum -y install "${base_url}/EL-8-aarch64/pgdg-redhat-repo-latest.noarch.rpm" ;; \
yum -y install "${base_url}/EL-8-aarch64/pgdg-redhat-repo-latest.noarch.rpm" ; \
if [ "12" -gt "15" ]; then pg_audit_pkg="pgaudit_12"; fi ;; \
*) \
exit 1 ;; \
esac ; \
Expand All @@ -34,7 +37,7 @@ RUN set -xe ; \
postgresql12-server-12.17 \
postgresql12-libs-12.17 \
pg_failover_slots_12 \
pgaudit14_12 \
"$pg_audit_pkg" \
; \
rm -fr /tmp/* ; \
yum -y clean all --enablerepo='*'
Expand Down
9 changes: 6 additions & 3 deletions UBI/12/Dockerfile.postgis-multilang
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ ARG TARGETARCH
RUN set -xe ; \
ARCH="${TARGETARCH}" ; \
base_url="https://download.postgresql.org/pub/repos/yum/reporpms" ; \
pg_audit_pkg="pgaudit14_12" ; \
case $ARCH in \
amd64) \
yum -y install "${base_url}/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm" ;; \
yum -y install "${base_url}/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm" ; \
if [ "12" -gt "15" ]; then pg_audit_pkg="pgaudit_12"; fi ;; \
arm64) \
yum -y install "${base_url}/EL-8-aarch64/pgdg-redhat-repo-latest.noarch.rpm" ;; \
yum -y install "${base_url}/EL-8-aarch64/pgdg-redhat-repo-latest.noarch.rpm" ; \
if [ "12" -gt "15" ]; then pg_audit_pkg="pgaudit_12"; fi ;; \
*) \
exit 1 ;; \
esac ; \
Expand All @@ -35,7 +38,7 @@ RUN set -xe ; \
postgresql12-server-12.17 \
postgresql12-libs-12.17 \
pg_failover_slots_12 \
pgaudit14_12 \
"$pg_audit_pkg" \
; \
rm -fr /tmp/* ; \
yum -y clean all --enablerepo='*'
Expand Down
9 changes: 6 additions & 3 deletions UBI/13/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ ARG TARGETARCH
RUN set -xe ; \
ARCH="${TARGETARCH}" ; \
base_url="https://download.postgresql.org/pub/repos/yum/reporpms" ; \
pg_audit_pkg="pgaudit15_13" ; \
case $ARCH in \
amd64) \
yum -y install "${base_url}/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm" ;; \
yum -y install "${base_url}/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm" ; \
if [ "13" -gt "15" ]; then pg_audit_pkg="pgaudit_13"; fi ;; \
arm64) \
yum -y install "${base_url}/EL-8-aarch64/pgdg-redhat-repo-latest.noarch.rpm" ;; \
yum -y install "${base_url}/EL-8-aarch64/pgdg-redhat-repo-latest.noarch.rpm" ; \
if [ "13" -gt "15" ]; then pg_audit_pkg="pgaudit_13"; fi ;; \
*) \
exit 1 ;; \
esac ; \
Expand All @@ -33,7 +36,7 @@ RUN set -xe ; \
postgresql13-server-13.13 \
postgresql13-libs-13.13 \
pg_failover_slots_13 \
pgaudit15_13 \
"$pg_audit_pkg" \
; \
rm -fr /tmp/* ; \
yum -y clean all --enablerepo='*'
Expand Down
12 changes: 7 additions & 5 deletions UBI/13/Dockerfile.multiarch
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,22 @@ RUN --mount=type=secret,id=cs_token \
case $ARCH in \
amd64) \
yum -y install "${base_url}/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm" ; \
curl -u token:$(cat /run/secrets/cs_token) -1sLf https://downloads.enterprisedb.com/basic/enterprise/setup.rpm.sh | bash ;; \
curl -u token:$(cat /run/secrets/cs_token) -1sLf https://downloads.enterprisedb.com/basic/enterprise/setup.rpm.sh | bash ; \
if [ "13" -gt "15" ]; then pg_audit_pkg="pgaudit_13"; fi ;; \
arm64) \
yum -y install "${base_url}/EL-8-aarch64/pgdg-redhat-repo-latest.noarch.rpm" ; \
curl -u token:$(cat /run/secrets/cs_token) -1sLf https://downloads.enterprisedb.com/basic/enterprise/setup.rpm.sh | bash ;; \
curl -u token:$(cat /run/secrets/cs_token) -1sLf https://downloads.enterprisedb.com/basic/enterprise/setup.rpm.sh | bash ; \
if [ "13" -gt "15" ]; then pg_audit_pkg="pgaudit_13"; fi ;; \
ppc64le) \
curl -u token:$(cat /run/secrets/cs_token) -1sLf https://downloads.enterprisedb.com/basic/enterprise/setup.rpm.sh | bash ; \
pg_failover_slots_pkg="edb-pg13-pg-failover-slots1" ; \
pg_audit_pkg="edb-pg13-pgaudit1" ; \
if [ "$PG_MAJOR" -gt "15" ]; then pg_audit_pkg="edb-pg13-pgaudit"; fi ;; \
if [ "13" -gt "15" ]; then pg_audit_pkg="edb-pg13-pgaudit13"; fi ;; \
s390x) \
curl -u token:$(cat /run/secrets/cs_token) -1sLf https://downloads.enterprisedb.com/basic/edb/setup.rpm.sh | bash ; \
pg_failover_slots_pkg="edb-pg13-pg-failover-slots1" ; \
pg_audit_pkg="edb-pg13-pgaudit1" ; \
if [ "$PG_MAJOR" -gt "15" ]; then pg_audit_pkg="edb-pg13-pgaudit"; fi ;; \
if [ "13" -gt "15" ]; then pg_audit_pkg="edb-pg13-pgaudit13"; fi ;; \
*) \
exit 1 ;; \
esac ; \
Expand All @@ -48,7 +50,7 @@ RUN --mount=type=secret,id=cs_token \
postgresql13-contrib-13.13 \
postgresql13-server-13.13 \
postgresql13-libs-13.13 \
"pg_audit_pkg" \
"$pg_audit_pkg" \
"$pg_failover_slots_pkg" \
; \
rm -fr /etc/yum.repos.d/enterprisedb-*.repo ; \
Expand Down
9 changes: 6 additions & 3 deletions UBI/13/Dockerfile.multilang
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ ARG TARGETARCH
RUN set -xe ; \
ARCH="${TARGETARCH}" ; \
base_url="https://download.postgresql.org/pub/repos/yum/reporpms" ; \
pg_audit_pkg="pgaudit15_13" ; \
case $ARCH in \
amd64) \
yum -y install "${base_url}/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm" ;; \
yum -y install "${base_url}/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm" ; \
if [ "13" -gt "15" ]; then pg_audit_pkg="pgaudit_13"; fi ;; \
arm64) \
yum -y install "${base_url}/EL-8-aarch64/pgdg-redhat-repo-latest.noarch.rpm" ;; \
yum -y install "${base_url}/EL-8-aarch64/pgdg-redhat-repo-latest.noarch.rpm" ; \
if [ "13" -gt "15" ]; then pg_audit_pkg="pgaudit_13"; fi ;; \
*) \
exit 1 ;; \
esac ; \
Expand All @@ -34,7 +37,7 @@ RUN set -xe ; \
postgresql13-server-13.13 \
postgresql13-libs-13.13 \
pg_failover_slots_13 \
pgaudit15_13 \
"$pg_audit_pkg" \
; \
rm -fr /tmp/* ; \
yum -y clean all --enablerepo='*'
Expand Down
9 changes: 6 additions & 3 deletions UBI/13/Dockerfile.postgis
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ ARG TARGETARCH
RUN set -xe ; \
ARCH="${TARGETARCH}" ; \
base_url="https://download.postgresql.org/pub/repos/yum/reporpms" ; \
pg_audit_pkg="pgaudit15_13" ; \
case $ARCH in \
amd64) \
yum -y install "${base_url}/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm" ;; \
yum -y install "${base_url}/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm" ; \
if [ "13" -gt "15" ]; then pg_audit_pkg="pgaudit_13"; fi ;; \
arm64) \
yum -y install "${base_url}/EL-8-aarch64/pgdg-redhat-repo-latest.noarch.rpm" ;; \
yum -y install "${base_url}/EL-8-aarch64/pgdg-redhat-repo-latest.noarch.rpm" ; \
if [ "13" -gt "15" ]; then pg_audit_pkg="pgaudit_13"; fi ;; \
*) \
exit 1 ;; \
esac ; \
Expand All @@ -34,7 +37,7 @@ RUN set -xe ; \
postgresql13-server-13.13 \
postgresql13-libs-13.13 \
pg_failover_slots_13 \
pgaudit15_13 \
"$pg_audit_pkg" \
; \
rm -fr /tmp/* ; \
yum -y clean all --enablerepo='*'
Expand Down
9 changes: 6 additions & 3 deletions UBI/13/Dockerfile.postgis-multilang
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ ARG TARGETARCH
RUN set -xe ; \
ARCH="${TARGETARCH}" ; \
base_url="https://download.postgresql.org/pub/repos/yum/reporpms" ; \
pg_audit_pkg="pgaudit15_13" ; \
case $ARCH in \
amd64) \
yum -y install "${base_url}/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm" ;; \
yum -y install "${base_url}/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm" ; \
if [ "13" -gt "15" ]; then pg_audit_pkg="pgaudit_13"; fi ;; \
arm64) \
yum -y install "${base_url}/EL-8-aarch64/pgdg-redhat-repo-latest.noarch.rpm" ;; \
yum -y install "${base_url}/EL-8-aarch64/pgdg-redhat-repo-latest.noarch.rpm" ; \
if [ "13" -gt "15" ]; then pg_audit_pkg="pgaudit_13"; fi ;; \
*) \
exit 1 ;; \
esac ; \
Expand All @@ -35,7 +38,7 @@ RUN set -xe ; \
postgresql13-server-13.13 \
postgresql13-libs-13.13 \
pg_failover_slots_13 \
pgaudit15_13 \
"$pg_audit_pkg" \
; \
rm -fr /tmp/* ; \
yum -y clean all --enablerepo='*'
Expand Down
9 changes: 6 additions & 3 deletions UBI/14/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ ARG TARGETARCH
RUN set -xe ; \
ARCH="${TARGETARCH}" ; \
base_url="https://download.postgresql.org/pub/repos/yum/reporpms" ; \
pg_audit_pkg="pgaudit16_14" ; \
case $ARCH in \
amd64) \
yum -y install "${base_url}/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm" ;; \
yum -y install "${base_url}/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm" ; \
if [ "14" -gt "15" ]; then pg_audit_pkg="pgaudit_14"; fi ;; \
arm64) \
yum -y install "${base_url}/EL-8-aarch64/pgdg-redhat-repo-latest.noarch.rpm" ;; \
yum -y install "${base_url}/EL-8-aarch64/pgdg-redhat-repo-latest.noarch.rpm" ; \
if [ "14" -gt "15" ]; then pg_audit_pkg="pgaudit_14"; fi ;; \
*) \
exit 1 ;; \
esac ; \
Expand All @@ -33,7 +36,7 @@ RUN set -xe ; \
postgresql14-server-14.10 \
postgresql14-libs-14.10 \
pg_failover_slots_14 \
pgaudit16_14 \
"$pg_audit_pkg" \
; \
rm -fr /tmp/* ; \
yum -y clean all --enablerepo='*'
Expand Down
12 changes: 7 additions & 5 deletions UBI/14/Dockerfile.multiarch
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,22 @@ RUN --mount=type=secret,id=cs_token \
case $ARCH in \
amd64) \
yum -y install "${base_url}/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm" ; \
curl -u token:$(cat /run/secrets/cs_token) -1sLf https://downloads.enterprisedb.com/basic/enterprise/setup.rpm.sh | bash ;; \
curl -u token:$(cat /run/secrets/cs_token) -1sLf https://downloads.enterprisedb.com/basic/enterprise/setup.rpm.sh | bash ; \
if [ "14" -gt "15" ]; then pg_audit_pkg="pgaudit_14"; fi ;; \
arm64) \
yum -y install "${base_url}/EL-8-aarch64/pgdg-redhat-repo-latest.noarch.rpm" ; \
curl -u token:$(cat /run/secrets/cs_token) -1sLf https://downloads.enterprisedb.com/basic/enterprise/setup.rpm.sh | bash ;; \
curl -u token:$(cat /run/secrets/cs_token) -1sLf https://downloads.enterprisedb.com/basic/enterprise/setup.rpm.sh | bash ; \
if [ "14" -gt "15" ]; then pg_audit_pkg="pgaudit_14"; fi ;; \
ppc64le) \
curl -u token:$(cat /run/secrets/cs_token) -1sLf https://downloads.enterprisedb.com/basic/enterprise/setup.rpm.sh | bash ; \
pg_failover_slots_pkg="edb-pg14-pg-failover-slots1" ; \
pg_audit_pkg="edb-pg14-pgaudit1" ; \
if [ "$PG_MAJOR" -gt "15" ]; then pg_audit_pkg="edb-pg14-pgaudit"; fi ;; \
if [ "14" -gt "15" ]; then pg_audit_pkg="edb-pg14-pgaudit14"; fi ;; \
s390x) \
curl -u token:$(cat /run/secrets/cs_token) -1sLf https://downloads.enterprisedb.com/basic/edb/setup.rpm.sh | bash ; \
pg_failover_slots_pkg="edb-pg14-pg-failover-slots1" ; \
pg_audit_pkg="edb-pg14-pgaudit1" ; \
if [ "$PG_MAJOR" -gt "15" ]; then pg_audit_pkg="edb-pg14-pgaudit"; fi ;; \
if [ "14" -gt "15" ]; then pg_audit_pkg="edb-pg14-pgaudit14"; fi ;; \
*) \
exit 1 ;; \
esac ; \
Expand All @@ -48,7 +50,7 @@ RUN --mount=type=secret,id=cs_token \
postgresql14-contrib-14.10 \
postgresql14-server-14.10 \
postgresql14-libs-14.10 \
"pg_audit_pkg" \
"$pg_audit_pkg" \
"$pg_failover_slots_pkg" \
; \
rm -fr /etc/yum.repos.d/enterprisedb-*.repo ; \
Expand Down
9 changes: 6 additions & 3 deletions UBI/14/Dockerfile.multilang
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ ARG TARGETARCH
RUN set -xe ; \
ARCH="${TARGETARCH}" ; \
base_url="https://download.postgresql.org/pub/repos/yum/reporpms" ; \
pg_audit_pkg="pgaudit16_14" ; \
case $ARCH in \
amd64) \
yum -y install "${base_url}/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm" ;; \
yum -y install "${base_url}/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm" ; \
if [ "14" -gt "15" ]; then pg_audit_pkg="pgaudit_14"; fi ;; \
arm64) \
yum -y install "${base_url}/EL-8-aarch64/pgdg-redhat-repo-latest.noarch.rpm" ;; \
yum -y install "${base_url}/EL-8-aarch64/pgdg-redhat-repo-latest.noarch.rpm" ; \
if [ "14" -gt "15" ]; then pg_audit_pkg="pgaudit_14"; fi ;; \
*) \
exit 1 ;; \
esac ; \
Expand All @@ -34,7 +37,7 @@ RUN set -xe ; \
postgresql14-server-14.10 \
postgresql14-libs-14.10 \
pg_failover_slots_14 \
pgaudit16_14 \
"$pg_audit_pkg" \
; \
rm -fr /tmp/* ; \
yum -y clean all --enablerepo='*'
Expand Down
9 changes: 6 additions & 3 deletions UBI/14/Dockerfile.postgis
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ ARG TARGETARCH
RUN set -xe ; \
ARCH="${TARGETARCH}" ; \
base_url="https://download.postgresql.org/pub/repos/yum/reporpms" ; \
pg_audit_pkg="pgaudit16_14" ; \
case $ARCH in \
amd64) \
yum -y install "${base_url}/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm" ;; \
yum -y install "${base_url}/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm" ; \
if [ "14" -gt "15" ]; then pg_audit_pkg="pgaudit_14"; fi ;; \
arm64) \
yum -y install "${base_url}/EL-8-aarch64/pgdg-redhat-repo-latest.noarch.rpm" ;; \
yum -y install "${base_url}/EL-8-aarch64/pgdg-redhat-repo-latest.noarch.rpm" ; \
if [ "14" -gt "15" ]; then pg_audit_pkg="pgaudit_14"; fi ;; \
*) \
exit 1 ;; \
esac ; \
Expand All @@ -34,7 +37,7 @@ RUN set -xe ; \
postgresql14-server-14.10 \
postgresql14-libs-14.10 \
pg_failover_slots_14 \
pgaudit16_14 \
"$pg_audit_pkg" \
; \
rm -fr /tmp/* ; \
yum -y clean all --enablerepo='*'
Expand Down
Loading

0 comments on commit 0fea090

Please sign in to comment.