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 25, 2022
1 parent 9363a91 commit eb7a046
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eb7a046

Please sign in to comment.