From 453b605de4561f386d5cef0df14822d24c196e93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ege=20G=C3=BCne=C5=9F?= Date: Mon, 23 Dec 2024 13:03:06 +0300 Subject: [PATCH] fix upgrade image build --- postgresql-containers/build/upgrade/Dockerfile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/postgresql-containers/build/upgrade/Dockerfile b/postgresql-containers/build/upgrade/Dockerfile index 8607110d..39d8186f 100644 --- a/postgresql-containers/build/upgrade/Dockerfile +++ b/postgresql-containers/build/upgrade/Dockerfile @@ -97,14 +97,12 @@ RUN for pg_version in 16 15 14 13 12; do \ percona-postgresql${pg_version}-libs \ percona-postgresql${pg_version}-llvmjit \ percona-wal2json${pg_version} \ - percona-pgvector_${pg_version}-llvmjit \ - percona-pgvector_${pg_version} \ percona-pg_stat_monitor${pg_version}; \ - done -# && microdnf -y clean all; \ -# microdnf clean all; \ -# rm -rf /var/cache/dnf /var/cache/yum + if [[ "${pg_version}" -gt 12 ]]; then \ + microdnf -y install --nodocs percona-pgvector_${pg_version} percona-pgvector_${pg_version}-llvmjit; \ + fi; \ + done && microdnf -y clean all && rm -rf /var/cache/dnf /var/cache/yum RUN mkdir -p /opt/crunchy/bin /pgolddata /pgnewdata /opt/crunchy/conf COPY bin/upgrade/ /opt/crunchy/bin