Skip to content

Commit

Permalink
feat: add wal2json extension
Browse files Browse the repository at this point in the history
Signed-off-by: Niccolò Fei <[email protected]>
  • Loading branch information
NiccoloFei committed Oct 16, 2024
1 parent ffa408a commit 4d3ba8e
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 4 deletions.
8 changes: 6 additions & 2 deletions UBI/Dockerfile-multiarch.template
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ RUN --mount=type=secret,id=cs_token \
pg_squeeze_pkg="pg_squeeze_%%PG_MAJOR%%" ; \
pgvector="pgvector_%%PG_MAJOR%%" ; \
pg_audit_pkg="pgaudit%%PGAUDIT_VERSION%%_%%PG_MAJOR%%" ; \
wal2json_pkg="wal2json_%%PG_MAJOR%%" ; \
case $ARCH in \
amd64) \
yum -y install "${base_url}/EL-%%UBI_MAJOR_VERSION%%-x86_64/pgdg-redhat-repo-latest.noarch.rpm" ; \
Expand All @@ -36,14 +37,16 @@ RUN --mount=type=secret,id=cs_token \
pg_squeeze_pkg="edb-pg%%PG_MAJOR%%-pg-squeeze1" ; \
pgvector="edb-pg%%PG_MAJOR%%-pgvector0" ; \
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 ;; \
if [ "%%PG_MAJOR%%" -gt "15" ]; then pg_audit_pkg="edb-pg%%PG_MAJOR%%-pgaudit%%PG_MAJOR%%"; fi ; \
wal2json_pkg="edb-pg%%PG_MAJOR%%-wal2json2" ;; \
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-squeeze1" ; \
pgvector="edb-pg%%PG_MAJOR%%-pgvector0" ; \
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 ;; \
if [ "%%PG_MAJOR%%" -gt "15" ]; then pg_audit_pkg="edb-pg%%PG_MAJOR%%-pgaudit%%PG_MAJOR%%"; fi ; \
wal2json_pkg="edb-pg%%PG_MAJOR%%-wal2json2" ;; \
*) \
exit 1 ;; \
esac ; \
Expand All @@ -60,6 +63,7 @@ RUN --mount=type=secret,id=cs_token \
"$pg_squeeze_pkg" \
"$pg_failover_slots_pkg" \
"$pgvector" \
"$wal2json_pkg" \
; \
rm -fr /etc/yum.repos.d/enterprisedb-*.repo ; \
rm -fr /tmp/* ; \
Expand Down
1 change: 1 addition & 0 deletions UBI/Dockerfile-multilang.template
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ RUN set -xe ; \
pg_squeeze_%%PG_MAJOR%% \
"$pg_audit_pkg" \
pgvector_%%PG_MAJOR%% \
wal2json_%%PG_MAJOR%% \
; \
rm -fr /tmp/* ; \
yum -y clean all --enablerepo='*'
Expand Down
8 changes: 6 additions & 2 deletions UBI/Dockerfile-postgis-multiarch.template
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ RUN --mount=type=secret,id=cs_token \
pg_squeeze_pkg="pg_squeeze_%%PG_MAJOR%%" ; \
pgvector="pgvector_%%PG_MAJOR%%" ; \
pg_audit_pkg="pgaudit%%PGAUDIT_VERSION%%_%%PG_MAJOR%%" ; \
wal2json_pkg="wal2json_%%PG_MAJOR%%" ; \
case $ARCH in \
amd64) \
yum -y install "${base_url}/EL-%%UBI_MAJOR_VERSION%%-x86_64/pgdg-redhat-repo-latest.noarch.rpm" ; \
Expand All @@ -37,14 +38,16 @@ RUN --mount=type=secret,id=cs_token \
pg_squeeze_pkg="edb-pg%%PG_MAJOR%%-pg-squeeze1" ; \
pgvector="edb-pg%%PG_MAJOR%%-pgvector0" ; \
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 ;; \
if [ "%%PG_MAJOR%%" -gt "15" ]; then pg_audit_pkg="edb-pg%%PG_MAJOR%%-pgaudit%%PG_MAJOR%%"; fi ; \
wal2json_pkg="edb-pg%%PG_MAJOR%%-wal2json2" ;; \
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-squeeze1" ; \
pgvector="edb-pg%%PG_MAJOR%%-pgvector0" ; \
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 ;; \
if [ "%%PG_MAJOR%%" -gt "15" ]; then pg_audit_pkg="edb-pg%%PG_MAJOR%%-pgaudit%%PG_MAJOR%%"; fi ; \
wal2json_pkg="edb-pg%%PG_MAJOR%%-wal2json2" ;; \
*) \
exit 1 ;; \
esac ; \
Expand All @@ -61,6 +64,7 @@ RUN --mount=type=secret,id=cs_token \
"$pg_squeeze_pkg" \
"$pg_failover_slots_pkg" \
"$pgvector" \
"$wal2json_pkg" \
; \
rm -fr /etc/yum.repos.d/enterprisedb-*.repo ; \
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 @@ -41,6 +41,7 @@ RUN set -xe ; \
pg_squeeze_%%PG_MAJOR%% \
"$pg_audit_pkg" \
pgvector_%%PG_MAJOR%% \
wal2json_%%PG_MAJOR%% \
; \
rm -fr /tmp/* ; \
yum -y clean all --enablerepo='*'
Expand Down
1 change: 1 addition & 0 deletions UBI/Dockerfile-postgis.template
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ RUN set -xe ; \
pg_squeeze_%%PG_MAJOR%% \
"$pg_audit_pkg" \
pgvector_%%PG_MAJOR%% \
wal2json_%%PG_MAJOR%% \
; \
rm -fr /tmp/* ; \
yum -y clean all --enablerepo='*'
Expand Down
1 change: 1 addition & 0 deletions UBI/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ RUN set -xe ; \
pg_squeeze_%%PG_MAJOR%% \
"$pg_audit_pkg" \
pgvector_%%PG_MAJOR%% \
wal2json_%%PG_MAJOR%% \
; \
rm -fr /tmp/* ; \
yum -y clean all --enablerepo='*'
Expand Down

0 comments on commit 4d3ba8e

Please sign in to comment.