This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:3.10 | |
RUN apk add --no-cache curl jq bash | |
CMD ["/bin/sh"] |