infrastructure/app/postgres/build/postgres/Dockerfile

16 lines
434 B
Docker
Raw Normal View History

2021-03-07 11:54:03 +00:00
FROM golang:1.13-buster AS builder
2019-06-01 14:02:49 +00:00
2021-03-07 11:18:08 +00:00
ARG STOLON_VERSION
2021-03-07 11:54:03 +00:00
WORKDIR /stolon
RUN git clone https://github.com/sorintlab/stolon .
RUN git pull && git checkout ${STOLON_VERSION}
RUN go mod download
2021-04-15 10:38:31 +00:00
COPY 0001-Add-max-rate-to-pg_basebackup.patch .
2021-04-15 11:05:21 +00:00
RUN git apply 0001-Add-max-rate-to-pg_basebackup.patch
2021-03-07 11:54:03 +00:00
RUN make && chmod +x /stolon/bin/*
2019-06-01 14:02:49 +00:00
2021-07-02 12:08:22 +00:00
FROM postgres:13.3-buster
2021-03-07 11:54:03 +00:00
COPY --from=builder /stolon/bin /usr/local/bin
2021-07-02 12:16:33 +00:00
ENTRYPOINT []
CMD ["/bin/bash"]