Skip to content

Instantly share code, notes, and snippets.

@PeterGriffitz
PeterGriffitz / Curl-Dockerfile
Created Dec 24, 2020
Floitet-Patroni-Zookeeper-Part2
View Curl-Dockerfile
FROM alpine:3.10
RUN apk add --no-cache curl jq bash
CMD ["/bin/sh"]
@PeterGriffitz
PeterGriffitz / Dockerfile
Created Dec 24, 2020
Floitet-Patroni-Zookeeper-Part1
View Dockerfile
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