diff --git a/Dockerfile b/Dockerfile index 08fa7fdf..eaf7fe56 100644 --- a/Dockerfile +++ b/Dockerfile @@ -146,7 +146,12 @@ RUN for postgisv in ${POSTGIS_VERSIONS}; do \ # This need to be done after the PostgreSQL packages have been installed, # to ensure we have the preferred libpq installations etc. RUN apt-get install -y python3-etcd python3-requests python3-pystache python3-kubernetes python3-pysyncobj -RUN apt-get install -y patroni +RUN apt-get install -y patroni=2.1.3-\* +# Patch Patroni code with changes from https://github.com/timescale/patroni/pull/1 +# NOTE: This is a temporary solution until changes land upstream. +RUN wget -qO- https://raw.githubusercontent.com/timescale/patroni/v2.2.0-beta.1/patroni/ha.py > /usr/lib/python3/dist-packages/patroni/ha.py && \ + wget -qO- https://raw.githubusercontent.com/timescale/patroni/v2.2.0-beta.1/patroni/config.py > /usr/lib/python3/dist-packages/patroni/config.py && \ + wget -qO- https://raw.githubusercontent.com/timescale/patroni/v2.2.0-beta.1/patroni/validator.py > /usr/lib/python3/dist-packages/patroni/validator.py RUN for file in $(find /usr/share/postgresql -name 'postgresql.conf.sample'); do \ # We want timescaledb to be loaded in this image by every created cluster