-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 851 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (21 loc) · 851 Bytes
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
# before you change the version, make sure https://github.com/eulerto/wal2json supports it
# also you need to update `postgresql-server-dev-XX` to use the same version.
FROM postgres:14.5
ENV POSTGRES_PASSWORD=postgres
ENV POSTGRES_USER=postgres
ENV POSTGRES_DB=postgres
RUN apt-get update
RUN apt-get install -y postgresql-14-wal2json
# Install the packages which will be required to get everything to compile
RUN apt-get update \
&& apt-get install -f -y --no-install-recommends \
software-properties-common \
build-essential \
pkg-config \
git \
postgresql-server-dev-14
RUN git clone https://github.com/eulerto/wal2json -b master --single-branch
RUN export PATH=/home/euler/pg14/bin:$PATH
RUN export PATH=/usr/lib/postgresql/14/bin:$PATH
# Install wal2json
RUN cd /wal2json && make && make install