-
-
Notifications
You must be signed in to change notification settings - Fork 128
Expand file tree
/
Copy path020-wal2json.sh
More file actions
executable file
·33 lines (29 loc) · 797 Bytes
/
020-wal2json.sh
File metadata and controls
executable file
·33 lines (29 loc) · 797 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
28
29
30
31
32
33
#!/usr/bin/env bash
set -e
# This setup script is heavily inspired by
# https://github.com/debezium/docker-images/blob/master/postgres/11/Dockerfile
PROTOC_VERSION=1.3
WAL2JSON_COMMIT_ID=wal2json_2_6
USE_PGXS=1
export PGUSER=postgres
export PGPASSWORD=postgres
createuser --superuser root
apt-get update
apt-get install -f -y --no-install-recommends \
apt-transport-https \
ca-certificates \
build-essential \
pkg-config \
git \
postgresql-server-dev-$PG_MAJOR
# add-apt-repository "deb http://ftp.debian.org/debian testing main contrib"
# apt-get update
rm -rf /var/lib/apt/lists/*
cd /
git clone https://github.com/eulerto/wal2json -b master --single-branch
cd wal2json
git checkout $WAL2JSON_COMMIT_ID
make
make install
cd ..
rm -rf wal2json