diff --git a/Dockerfile b/Dockerfile index 9bee3a0b..d0774ce9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -143,7 +143,12 @@ RUN for postgisv in ${POSTGIS_VERSIONS}; do \ # Patroni and Spilo Dependencies # 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 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. + wget -qO- https://raw.githubusercontent.com/timescale/patroni/v2.2.0-beta.0/patroni/ha.py > /usr/lib/python3/dist-packages/patroni/ha.py && \ + wget -qO- https://raw.githubusercontent.com/timescale/patroni/v2.2.0-beta.0/patroni/config.py > /usr/lib/python3/dist-packages/patroni/config.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