From 2bd64c4c32d193e3146f7d55b99c3d7f1dae5276 Mon Sep 17 00:00:00 2001 From: Konstantin Demin Date: Fri, 21 Feb 2025 11:43:41 +0300 Subject: [PATCH] adjust Citus package/version selection --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 250bd09..c43502e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -94,8 +94,11 @@ SHELL [ "/bin/sh", "-ec" ] COPY /apt/sources.citus /etc/apt/sources.list.d/citus.sources -RUN apt-install.sh \ - "postgresql-${PG_MAJOR}-citus-12.1" \ +RUN apt-env.sh apt-get update ; \ + citus_pkg=$(apt-cache search "^postgresql-${PG_MAJOR}-citus-[0-9.]+\$" | awk '{print $1}' | sort -rV | head -n1) ; \ + : "${citus_pkg:?}" ; \ + apt-install.sh \ + "${citus_pkg}" \ "postgresql-${PG_MAJOR}-topn" \ ; apt-clean.sh ; \ jdupes -1LSpr /usr/