Skip to content

Commit

Permalink
K8SPG-652 downgrade patroni for PG <= 16 (#1077)
Browse files Browse the repository at this point in the history
  • Loading branch information
hors authored Dec 10, 2024
1 parent 6f343e2 commit f0fe790
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion postgresql-containers/build/pgbackrest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ RUN set -ex; \

RUN set -ex; \
microdnf -y install \
percona-pgbackrest-2.53*; \
percona-pgbackrest; \
microdnf -y clean all

RUN set -ex; \
Expand Down
9 changes: 7 additions & 2 deletions postgresql-containers/build/postgres/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ RUN set -ex; \
percona-release enable ppg-${PG_MAJOR} release

RUN set -ex; \
microdnf -y install perl-DBI perl-DBD-Pg perl-XML-Parser; \
yum-config-manager --disable ol9_appstream; \
microdnf --disablerepo="ubi-9-appstream-rpms" -y install \
llvm; \
Expand Down Expand Up @@ -97,7 +98,7 @@ RUN set -ex; \
--enablerepo="ol9_developer_EPEL" \
percona-pgaudit${PG_MAJOR//.} \
percona-pgaudit${PG_MAJOR//.}_set_user \
percona-pgbackrest-2.53* \
percona-pgbackrest \
percona-postgresql${PG_MAJOR//.}-contrib \
percona-postgresql${PG_MAJOR//.}-server \
percona-postgresql${PG_MAJOR//.}-libs \
Expand Down Expand Up @@ -129,7 +130,11 @@ RUN set -ex; \
microdnf clean all; \
rm -rf /var/cache/dnf /var/cache/yum

RUN microdnf -y install --enablerepo="ol9_developer_EPEL" percona-patroni; \
RUN if [[ "${PG_MAJOR//.}" -le '16' ]]; then \
microdnf -y install --enablerepo="ol9_developer_EPEL" percona-patroni-3*; \
else \
microdnf -y install --enablerepo="ol9_developer_EPEL" percona-patroni; \
fi; \
microdnf clean all; \
rm -rf /var/cache/dnf /var/cache/yum

Expand Down

0 comments on commit f0fe790

Please sign in to comment.