File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ FROM minio/mc:latest as mc
2+
3+
4+ FROM golang:latest as builder
5+ ARG GOBIN=/usr/local/bin
6+ ARG WAL_G_VERSION=v0.2.15
7+
8+ RUN apt-get update \
9+ && apt-get install -y git gcc liblzo2-dev cmake \
10+ && git clone --dept 1 -b $WAL_G_VERSION https://github.com/wal-g/wal-g $GOPATH/src/github.com/wal-g/wal-g \
11+ && cd $GOPATH/src/github.com/wal-g/wal-g \
12+ && make install \
13+ && make deps \
14+ && CGO_ENABLE=0 make pg_install
15+
16+
117FROM postgres:13-alpine
218
319COPY rootfs /
20+ COPY --from=mc /usr/bin/mc /bin/mc
21+ COPY --from=builder /usr/local/bin/wal-g /bin/wal-g
422
523ENV PGDATA $PGDATA/$PG_MAJOR
624ENV WALG_ENVDIR /etc/wal-g.d/env
7- ADD https://github.com/wal-g/wal-g/releases/download/v0.2.16/wal-g.linux-amd64.tar.gz /bin
8-
9- RUN wget https://dl.min.io/client/mc/release/linux-amd64/mc -O /bin/mc \
10- && chmod +x /bin/mc \
11- && mkdir -p $WALG_ENVDIR \
12- && tar -xvzf /bin/wal-g.linux-amd64.tar.gz -C /bin && rm /bin/wal-g.linux-amd64.tar.gz \
13- && wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.31-r0/glibc-2.31-r0.apk \
14- && apk add --allow-untrusted glibc-2.31-r0.apk \
15- && rm glibc-2.31-r0.apk \
25+
26+ RUN mkdir -p $WALG_ENVDIR \
1627 && apk add --no-cache jq python3 curl \
1728 && curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
1829 && python3 get-pip.py \
You can’t perform that action at this time.
0 commit comments