Skip to content

Commit 5338284

Browse files
committed
Install wal2json in test image
1 parent 4f0c3c1 commit 5338284

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM docker.io/bitnami/postgresql:12
2+
3+
# Install wal2json
4+
USER root
5+
RUN install_packages curl ca-certificates gnupg && \
6+
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | tee /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg >/dev/null && \
7+
echo "deb http://apt.postgresql.org/pub/repos/apt buster-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \
8+
install_packages postgresql-12-wal2json && \
9+
cp /usr/lib/postgresql/12/lib/wal2json.so /opt/bitnami/postgresql/lib/wal2json.so
10+
USER 1001

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: "3.3"
22

33
services:
44
db_primary:
5-
image: "docker.io/bitnami/postgresql:12"
5+
build: .
66
container_name: "primary"
77
ports:
88
- "5432:5432"

0 commit comments

Comments
 (0)