Skip to content

Commit

Permalink
Merge pull request #54 from replicase/feat/support-pg15-and-pg16
Browse files Browse the repository at this point in the history
feat: support pg15 and pg16
  • Loading branch information
rueian authored Nov 5, 2023
2 parents fb405dc + a88388c commit e377233
Show file tree
Hide file tree
Showing 11 changed files with 4,254 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ jobs:
- checkout
- test-with-pg:
version: 14
test-pg-15:
executor: default
steps:
- checkout
- test-with-pg:
version: 15
test-pg-16:
executor: default
steps:
- checkout
- test-with-pg:
version: 16

workflows:
test:
Expand All @@ -52,3 +64,5 @@ workflows:
- test-pg-12
- test-pg-13
- test-pg-14
- test-pg-15
- test-pg-16
10 changes: 9 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ x-common-build: &common-build
services:
pg_11:
<<: *common-pg
image: rueian/postgres:11-logical
image: dcard/postgres:11-logical
container_name: postgres
pg_12:
<<: *common-pg
Expand All @@ -58,6 +58,14 @@ services:
<<: *common-pg
image: dcard/postgres:14-logical
container_name: postgres
pg_15:
<<: *common-pg
image: replicase/postgres:15-logical
container_name: postgres
pg_16:
<<: *common-pg
image: replicase/postgres:16-logical
container_name: postgres
pulsar:
image: apachepulsar/pulsar:2.10.4
container_name: pulsar
Expand Down
20 changes: 20 additions & 0 deletions hack/postgres/15/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM postgres:15-alpine

RUN wget https://github.com/2ndQuadrant/pglogical/archive/REL2_4_2.tar.gz && \
tar -zxvf REL2_4_2.tar.gz && \
apk -U add --no-cache build-base libxslt-dev libxml2-dev openssl-dev libedit-dev zlib-dev lz4-dev patch $DOCKER_PG_LLVM_DEPS krb5-pkinit krb5-dev krb5

COPY 15/pglogical/pglogical.patch ./pglogical-REL2_4_2

RUN cd pglogical-REL2_4_2 && \
patch -p1 < pglogical.patch && \
make USE_PGXS=1 CPPFLAGS="-DPGL_NO_STDIN_ASSIGN" clean all && \
make install && \
cd / && \
rm -rf /REL2_4_2.tar.gz.tar.gz /pglogical-REL2_4_2.tar.gz

RUN chown -R postgres:postgres /usr/local/share/postgresql/extension
RUN chown -R postgres:postgres /usr/local/lib/postgresql

COPY ./extension /extension
RUN cd /extension && ./make.sh
Loading

0 comments on commit e377233

Please sign in to comment.