Draft stolon update
This commit is contained in:
parent
b608567648
commit
4d7470b2fd
3 changed files with 18 additions and 6 deletions
|
@ -90,6 +90,16 @@ services:
|
|||
VERSION: 3.4.14-0+deb10u1
|
||||
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:
|
||||
build:
|
||||
context: ./backup/build/backup-consul
|
||||
|
|
|
@ -1,13 +1,19 @@
|
|||
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 && \
|
||||
apt-get update && \
|
||||
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 && \
|
||||
mkdir -p /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/gofmt /usr/bin/gofmt && \
|
||||
cd ./stolon && \
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
```
|
||||
docker build -t superboum/arm32v7_postgres .
|
||||
docker build -t superboum/amd64_postgres:v2 .
|
||||
```
|
Reference in a new issue