aboutsummaryrefslogtreecommitdiff
path: root/app/postgres
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2021-03-07 12:18:08 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2021-03-07 12:18:08 +0100
commit4d7470b2fd1e04a688c18cc165212ee2dfd0543e (patch)
tree075d8aeb1455579626c40ce99e50d8afea47bfc5 /app/postgres
parentb6085676483fc8308fa4a1954e3fb18052186e49 (diff)
downloadinfrastructure-4d7470b2fd1e04a688c18cc165212ee2dfd0543e.tar.gz
infrastructure-4d7470b2fd1e04a688c18cc165212ee2dfd0543e.zip
Draft stolon update
Diffstat (limited to 'app/postgres')
-rw-r--r--app/postgres/build/postgres/Dockerfile10
-rw-r--r--app/postgres/build/postgres/README.md4
2 files changed, 8 insertions, 6 deletions
diff --git a/app/postgres/build/postgres/Dockerfile b/app/postgres/build/postgres/Dockerfile
index bb018b8..23243aa 100644
--- a/app/postgres/build/postgres/Dockerfile
+++ b/app/postgres/build/postgres/Dockerfile
@@ -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 && \
diff --git a/app/postgres/build/postgres/README.md b/app/postgres/build/postgres/README.md
deleted file mode 100644
index d2f7a12..0000000
--- a/app/postgres/build/postgres/README.md
+++ /dev/null
@@ -1,4 +0,0 @@
-```
-docker build -t superboum/arm32v7_postgres .
-docker build -t superboum/amd64_postgres:v2 .
-```