Draft stolon update

This commit is contained in:
Quentin 2021-03-07 12:18:08 +01:00
parent b608567648
commit 4d7470b2fd
3 changed files with 18 additions and 6 deletions

View file

@ -90,6 +90,16 @@ services:
VERSION: 3.4.14-0+deb10u1 VERSION: 3.4.14-0+deb10u1
image: superboum/amd64_postfix:v3 image: superboum/amd64_postfix:v3
postgres:
build:
args:
# https://github.com/sorintlab/stolon/releases
STOLON_VERSION: v0.16.0
# https://packages.debian.org/fr/stretch/postgresql-all
PG_VERSION: 9.6+181+deb9u3
context: ./postgres/build/postgres
image: superboum/amd64_postgres:v4
backup-consul: backup-consul:
build: build:
context: ./backup/build/backup-consul context: ./backup/build/backup-consul

View file

@ -1,13 +1,19 @@
FROM amd64/debian:stretch FROM amd64/debian:stretch
ARG STOLON_VERSION
ARG PG_VERSION
RUN echo "deb http://deb.debian.org/debian stretch-backports main contrib non-free # available after stretch release" > /etc/apt/sources.list.d/stretch-backports.list && \ RUN echo "deb http://deb.debian.org/debian stretch-backports main contrib non-free # available after stretch release" > /etc/apt/sources.list.d/stretch-backports.list && \
apt-get update && \ apt-get update && \
apt-get -qq -y full-upgrade && \ apt-get -qq -y full-upgrade && \
apt-get install -y postgresql-all golang-1.11 git && \ apt-get install -y \
postgresql-all=${PG_VERSION} \
golang-1.11 \
git && \
export GOPATH=/usr/local/go && \ export GOPATH=/usr/local/go && \
mkdir -p /usr/local/go/src/github.com/sorintlab && \ mkdir -p /usr/local/go/src/github.com/sorintlab && \
cd /usr/local/go/src/github.com/sorintlab && \ cd /usr/local/go/src/github.com/sorintlab && \
git clone --depth=1 https://github.com/sorintlab/stolon && \ git clone --depth 1 --branch ${STOLON_VERSION} https://github.com/sorintlab/stolon && \
ln -s /usr/lib/go-1.11/bin/go /usr/bin/go && \ ln -s /usr/lib/go-1.11/bin/go /usr/bin/go && \
ln -s /usr/lib/go-1.11/bin/gofmt /usr/bin/gofmt && \ ln -s /usr/lib/go-1.11/bin/gofmt /usr/bin/gofmt && \
cd ./stolon && \ cd ./stolon && \

View file

@ -1,4 +0,0 @@
```
docker build -t superboum/arm32v7_postgres .
docker build -t superboum/amd64_postgres:v2 .
```