Skip to content

Commit

Permalink
Add Patroni updates for static_primary support
Browse files Browse the repository at this point in the history
  • Loading branch information
thedodd committed Apr 22, 2022
1 parent a9a0fa8 commit 3f57fa0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,13 @@ 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.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
Expand Down

0 comments on commit 3f57fa0

Please sign in to comment.