Skip to content

Commit

Permalink
feat: add pg_squeeze extension to images
Browse files Browse the repository at this point in the history
  • Loading branch information
jsilvela committed Feb 22, 2024
1 parent d3c7c44 commit 1efa2f6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions UBI/Dockerfile-multiarch.template
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN --mount=type=secret,id=cs_token \
ARCH="${TARGETARCH}" ; \
base_url="https://download.postgresql.org/pub/repos/yum/reporpms" ; \
pg_failover_slots_pkg="pg_failover_slots_%%PG_MAJOR%%" ; \
pg_squeeze_pkg="pg_squeeze_%%PG_MAJOR%%" ; \
pg_audit_pkg="pgaudit%%PGAUDIT_VERSION%%_%%PG_MAJOR%%" ; \
case $ARCH in \
amd64) \
Expand All @@ -31,11 +32,13 @@ RUN --mount=type=secret,id=cs_token \
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-pg%%PG_MAJOR%%-pg-failover-slots1" ; \
pg_squeeze_pkg="edb-pg%%PG_MAJOR%%-pg-squeeze1" ; \
pg_audit_pkg="edb-pg%%PG_MAJOR%%-pgaudit1" ; \
if [ "%%PG_MAJOR%%" -gt "15" ]; then pg_audit_pkg="edb-pg%%PG_MAJOR%%-pgaudit%%PG_MAJOR%%"; 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-pg%%PG_MAJOR%%-pg-failover-slots1" ; \
pg_squeeze_pkg="edb-pg%%PG_MAJOR%%-pg-failover-slots1" ; \
pg_audit_pkg="edb-pg%%PG_MAJOR%%-pgaudit1" ; \
if [ "%%PG_MAJOR%%" -gt "15" ]; then pg_audit_pkg="edb-pg%%PG_MAJOR%%-pgaudit%%PG_MAJOR%%"; fi ;; \
*) \
Expand Down
1 change: 1 addition & 0 deletions UBI/Dockerfile-multilang.template
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ RUN set -xe ; \
postgresql%%PG_MAJOR%%-server-%%POSTGRES_VERSION%% \
postgresql%%PG_MAJOR%%-libs-%%POSTGRES_VERSION%% \
pg_failover_slots_%%PG_MAJOR%% \
pg_squeeze_%%PG_MAJOR%% \
"$pg_audit_pkg" \
; \
rm -fr /tmp/* ; \
Expand Down
1 change: 1 addition & 0 deletions UBI/Dockerfile-postgis-multilang.template
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ RUN set -xe ; \
postgresql%%PG_MAJOR%%-server-%%POSTGRES_VERSION%% \
postgresql%%PG_MAJOR%%-libs-%%POSTGRES_VERSION%% \
pg_failover_slots_%%PG_MAJOR%% \
pg_squeeze_%%PG_MAJOR%% \
"$pg_audit_pkg" \
; \
rm -fr /tmp/* ; \
Expand Down
1 change: 1 addition & 0 deletions UBI/Dockerfile-postgis.template
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ RUN set -xe ; \
postgresql%%PG_MAJOR%%-server-%%POSTGRES_VERSION%% \
postgresql%%PG_MAJOR%%-libs-%%POSTGRES_VERSION%% \
pg_failover_slots_%%PG_MAJOR%% \
pg_squeeze_%%PG_MAJOR%% \
"$pg_audit_pkg" \
; \
rm -fr /tmp/* ; \
Expand Down
1 change: 1 addition & 0 deletions UBI/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ RUN set -xe ; \
postgresql%%PG_MAJOR%%-server-%%POSTGRES_VERSION%% \
postgresql%%PG_MAJOR%%-libs-%%POSTGRES_VERSION%% \
pg_failover_slots_%%PG_MAJOR%% \
pg_squeeze_%%PG_MAJOR%% \
"$pg_audit_pkg" \
; \
rm -fr /tmp/* ; \
Expand Down

0 comments on commit 1efa2f6

Please sign in to comment.