Commit 89ce6272 authored by kaiyou's avatar kaiyou
Browse files

Use Ubuntu 18 binary build from wal-g repo

parent fc742bfc
Pipeline #5992 passed with stage
in 1 minute and 23 seconds
FROM golang:buster
ENV WALG_VERSION 1.0
RUN apt-get update \
&& apt-get install -y cmake \
&& git clone https://github.com/wal-g/wal-g.git \
&& cd wal-g && git checkout v$WALG_VERSION \
&& make USE_LIBSODIUM=1 install_and_build_pg
FROM debian:buster-slim
ADD 2ndquadrant.asc /tmp/2ndquadrant.asc
......@@ -28,9 +18,10 @@ RUN apt-get update \
&& echo create_main_cluster = false >> /etc/postgresql-common/createcluster.conf \
&& apt-get install -y postgresql-$PG_MAJOR postgresql-$PG_MAJOR-repmgr postgresql-$PG_MAJOR-pglogical \
&& rm -rf /var/cache/apt \
&& mkdir -p /var/run/postgresql && touch /var/run/postgresql/.keep
COPY --from=0 /go/wal-g/main/pg/wal-g /usr/local/bin/wal-g
&& mkdir -p /var/run/postgresql \
# Download and install wal-g \
&& curl -L -o /usr/local/bin/wal-g https://github.com/wal-g/wal-g/releases/download/v$WALG_VERSION/wal-g-pg-ubuntu-18.04-amd64 \
&& chmod +x /usr/local/bin/wal-g
ENV PATH $PATH:/usr/lib/postgresql/$PG_MAJOR/bin
ENV PGDATA /var/lib/postgresql/data
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment