Skip to content

Commit

Permalink
feat: add wal2json extension (#193)
Browse files Browse the repository at this point in the history
Signed-off-by: Niccolò Fei <[email protected]>
Signed-off-by: Jaime Silvela <[email protected]>
Co-authored-by: Jaime Silvela <[email protected]>
  • Loading branch information
NiccoloFei and jsilvela authored Oct 29, 2024
1 parent 57e8c07 commit 66bbf73
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 2 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
4 changes: 4 additions & 0 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,13 +38,15 @@ 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" ; \
wal2json_pkg="edb-pg%%PG_MAJOR%%-wal2json2" ; \
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-squeeze1" ; \
pgvector="edb-pg%%PG_MAJOR%%-pgvector0" ; \
pg_audit_pkg="edb-pg%%PG_MAJOR%%-pgaudit1" ; \
wal2json_pkg="edb-pg%%PG_MAJOR%%-wal2json2" ; \
if [ "%%PG_MAJOR%%" -gt "15" ]; then pg_audit_pkg="edb-pg%%PG_MAJOR%%-pgaudit%%PG_MAJOR%%"; fi ;; \
*) \
exit 1 ;; \
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 66bbf73

Please sign in to comment.