-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile.postgres
40 lines (33 loc) · 1.07 KB
/
Dockerfile.postgres
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM postgres:15
WORKDIR /
ARG USE_POSTGIS=false
ENV PROTOC_VERSION=1.4
# To keep this simple we are just going to copy the config straight into the
# image.
COPY postgresql.conf /usr/share/postgresql/postgresql.conf.sample
RUN apt-get update \
&& apt-get install -f -y --no-install-recommends \
ca-certificates \
software-properties-common \
build-essential \
pkg-config \
git \
postgresql-server-dev-15 \
&& add-apt-repository "deb http://ftp.debian.org/debian testing main contrib" \
&& apt-get update && apt-get install -f -y --no-install-recommends \
libprotobuf-c-dev=$PROTOC_VERSION.* \
&& rm -rf /var/lib/apt/lists/*
# Install the decoderbuffs plugin.
RUN git clone https://github.com/hughcapet/postgres-decoderbufs \
&& cd /postgres-decoderbufs \
&& git fetch origin pg15_compat \
&& git checkout pg15_compat \
&& make && make install \
&& cd / \
&& rm -rf postgres-decoderbufs
# Install the wal2json plugin.
RUN git clone https://github.com/eulerto/wal2json \
&& cd /wal2json \
&& make && make install \
&& cd / \
&& rm -rf wal2json