Skip to content

Instantly share code, notes, and snippets.

View PeterGriffitz's full-sized avatar

PeterGriffitz

View GitHub Profile
@PeterGriffitz
PeterGriffitz / Dockerfile
Created December 24, 2020 11:50
Floitet-Patroni-Zookeeper-Part1
FROM postgres:11
RUN apt-get update -y\
&& apt-get install python3 python3-pip -y\
&& pip3 install --upgrade setuptools\
&& pip3 install psycopg2-binary \
&& pip3 install patroni[zookeeper] \
&& mkdir /data/patroni -p \
&& chown postgres:postgres /data/patroni \
&& chmod 700 /data/patroni
@PeterGriffitz
PeterGriffitz / Curl-Dockerfile
Created December 24, 2020 12:29
Floitet-Patroni-Zookeeper-Part2
FROM alpine:3.10
RUN apk add --no-cache curl jq bash
CMD ["/bin/sh"]