From a0be7c92cee8087c2107b73610d13c85a6bab914 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Tue, 3 Dec 2024 10:51:15 +0800 Subject: [PATCH] Install `postgresql-client-${PG_MAJOR}` instead of `postgresql-client` (#892) This ensures that the client tools we installed are compatible with the version of the Postgres cluster. --- image/base/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image/base/Dockerfile b/image/base/Dockerfile index cf42d3a..3c611f0 100644 --- a/image/base/Dockerfile +++ b/image/base/Dockerfile @@ -56,7 +56,7 @@ RUN --mount=type=tmpfs,target=/var/log \ dpkg-divert --local --rename --add /sbin/initctl; \ sh -c "test -f /sbin/initctl || ln -s /bin/true /sbin/initctl"; \ apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get -y install runit socat \ - libpq-dev postgresql-client \ + libpq-dev postgresql-client-${PG_MAJOR} \ postgresql-${PG_MAJOR} postgresql-contrib-${PG_MAJOR} postgresql-${PG_MAJOR}-pgvector \ nodejs yarn &&\ mkdir -p /etc/runit/1.d -- 2.25.1