Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
postgres: ["16.0", "15.4", "14.9", "13.12"]
postgres: ["18", "17", "16", "15", "14", "13"]
steps:
- name: Checkout
uses: actions/checkout@v6
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
database:
build:
context: postgres-cdc/src/test/resources/postgres
dockerfile: Dockerfile-16.0
dockerfile: Dockerfile-18
environment:
POSTGRES_USER: test
POSTGRES_PASSWORD: test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ private void consumeStream(PGReplicationStream stream) throws SQLException {
stream.setFlushedLSN(stream.getLastReceiveLSN());
stream.forceUpdateStatus();
} catch (Exception e) {
LOGGER.warn("Could not consume database change event from replication slot" + replicationSlotName, e);
LOGGER.warn("Could not consume database change event from replication slot {}", replicationSlotName, e);
}
}
LOGGER.info("Replication slot {} consumer was stopped", replicationSlotName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class DatabaseExtension implements BeforeEachCallback, AfterEachCallback

private static final GenericContainer<?> DB_CONTAINER = new GenericContainer<>(
new ImageFromDockerfile("postgres-cdc-test")
.withDockerfile(Path.of("./src/test/resources/postgres/Dockerfile-" + (POSTGRES_VERSION == null ? "16.0" : POSTGRES_VERSION)))
.withDockerfile(Path.of("./src/test/resources/postgres/Dockerfile-" + (POSTGRES_VERSION == null ? "18" : POSTGRES_VERSION)))
).withExposedPorts(DB_PORT)
.withLogConsumer(new Slf4jLogConsumer(LOGGER).withPrefix("database"))
.withEnv(Map.of(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM postgres:13.12-alpine
FROM postgres:13.23-alpine

ENV WAL2JSON_TAG=wal2json_2_5
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 \
RUN apk add --no-cache --virtual .build-deps clang19 llvm19 git make musl-dev \
&& git clone --depth 1 --branch $WAL2JSON_TAG https://github.com/eulerto/wal2json \
&& (cd /wal2json && make && make install) \
&& rm -rf wal2json \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM postgres:15.4-alpine
FROM postgres:14.20-alpine

ENV WAL2JSON_TAG=wal2json_2_5
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 \
RUN apk add --no-cache --virtual .build-deps clang19 llvm19 git make musl-dev \
&& git clone --depth 1 --branch $WAL2JSON_TAG https://github.com/eulerto/wal2json \
&& (cd /wal2json && make && make install) \
&& rm -rf wal2json \
Expand Down
12 changes: 12 additions & 0 deletions postgres-cdc/src/test/resources/postgres/Dockerfile-15
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM postgres:15.15-alpine

ENV WAL2JSON_TAG=wal2json_2_6

# Compile and install the wal2json plugin
RUN apk add --no-cache --virtual .build-deps clang19 llvm19 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
12 changes: 12 additions & 0 deletions postgres-cdc/src/test/resources/postgres/Dockerfile-16
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM postgres:16.11-alpine

ENV WAL2JSON_TAG=wal2json_2_6

# Compile and install the wal2json plugin
RUN apk add --no-cache --virtual .build-deps clang19 llvm19 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
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM postgres:16-alpine
FROM postgres:17.7-alpine

ENV WAL2JSON_TAG=wal2json_2_5
ENV WAL2JSON_TAG=wal2json_2_6

# Compile and install the wal2json plugin
RUN apk add --no-cache --virtual .build-deps clang19 llvm19 git make musl-dev \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM postgres:14.9-alpine
FROM postgres:18.1-alpine

ENV WAL2JSON_TAG=wal2json_2_5
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 \
RUN apk add --no-cache --virtual .build-deps clang19 llvm19 git make musl-dev \
&& git clone --depth 1 --branch $WAL2JSON_TAG https://github.com/eulerto/wal2json \
&& (cd /wal2json && make && make install) \
&& rm -rf wal2json \
Expand Down