Skip to content

Commit

Permalink
chore: support wal2json v2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
JashBook committed Feb 26, 2025
1 parent 296a529 commit e1dc4dd
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions postgres-appliance/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
ARG BASE_IMAGE=ubuntu:22.04
ARG PGVERSION=16
ARG PGVECTOR="v0.8.0"
ARG PGJWT="v0.2.0"
ARG PGWAL2JSON="v2.6"
ARG TIMESCALEDB="2.11.2 2.14.2"
ARG DEMO=false
ARG COMPRESS=false
Expand Down Expand Up @@ -49,6 +51,8 @@ ARG TIMESCALEDB
ARG TIMESCALEDB_APACHE_ONLY=true
ARG TIMESCALEDB_TOOLKIT=true
ARG PGVECTOR
ARG PGJWT
ARG PGWAL2JSON
ARG COMPRESS
ARG PGOLDVERSIONS="12 13 14 15 16"
ARG WITH_PERL=false
Expand Down
21 changes: 21 additions & 0 deletions postgres-appliance/build_scripts/base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ curl -sL "https://github.com/zubkov-andrei/pg_profile/archive/$PG_PROFILE.tar.gz
git clone -b "$SET_USER" https://github.com/pgaudit/set_user.git
git clone https://github.com/timescale/timescaledb.git
git clone https://github.com/pgvector/pgvector.git
git clone https://github.com/michelp/pgjwt
git clone https://github.com/eulerto/wal2json.git

apt-get install -y \
postgresql-common \
Expand Down Expand Up @@ -161,6 +163,25 @@ for version in $DEB_PG_SUPPORTED_VERSIONS; do
done
)

# install pgjwt
(
cd pgjwt
export PG_CONFIG="/usr/lib/postgresql/$version/bin/pg_config"
make OPTFLAGS="" && make install
git reset --hard
git clean -f -d
)

# install wal2json
(
sudo apt-get install postgresql-server-dev-$version
cd wal2json
export PG_CONFIG="/usr/lib/postgresql/$version/bin/pg_config"
make OPTFLAGS="" && make install
git reset --hard
git clean -f -d
)

if [ "${TIMESCALEDB_APACHE_ONLY}" != "true" ] && [ "${TIMESCALEDB_TOOLKIT}" = "true" ]; then
__versionCodename=$(sed </etc/os-release -ne 's/^VERSION_CODENAME=//p')
echo "deb [signed-by=/usr/share/keyrings/timescale_E7391C94080429FF.gpg] https://packagecloud.io/timescale/timescaledb/ubuntu/ ${__versionCodename} main" | tee /etc/apt/sources.list.d/timescaledb.list
Expand Down

0 comments on commit e1dc4dd

Please sign in to comment.