From 25b783af023da557d3c19d983e72c3f3c935cc5e Mon Sep 17 00:00:00 2001 From: lospejos Date: Wed, 18 Dec 2024 16:01:30 +0200 Subject: [PATCH] Added PG 17 docker file with an updated wal2json version --- docker-compose.yml | 2 +- .../src/test/resources/postgres/Dockerfile-17.0 | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 postgres-cdc/src/test/resources/postgres/Dockerfile-17.0 diff --git a/docker-compose.yml b/docker-compose.yml index 63546d1..7a2d0da 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: database: build: context: postgres-cdc/src/test/resources/postgres - dockerfile: Dockerfile-16.0 + dockerfile: Dockerfile-17.0 environment: POSTGRES_USER: test POSTGRES_PASSWORD: test diff --git a/postgres-cdc/src/test/resources/postgres/Dockerfile-17.0 b/postgres-cdc/src/test/resources/postgres/Dockerfile-17.0 new file mode 100644 index 0000000..ff04f27 --- /dev/null +++ b/postgres-cdc/src/test/resources/postgres/Dockerfile-17.0 @@ -0,0 +1,12 @@ +FROM postgres:17-alpine + +ENV WAL2JSON_TAG=wal2json_2_6 + +# Compile and install the wal2json plugin +RUN apk add --no-cache --virtual .build-deps clang15 llvm15 git make musl-dev \ + && git clone --depth 1 --branch $WAL2JSON_TAG https://github.com/eulerto/wal2json \ + && (cd /wal2json && make && make install) \ + && rm -rf wal2json \ + && apk del .build-deps + +COPY postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample