From aedfd8f8bf7175b6e6da319b3bec5609cfedf7bf Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Tue, 3 Dec 2024 10:28:42 +0800 Subject: [PATCH] Install `postgresql-client-${PG_MAJOR}` instead of `postgresql-client` 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 cf42d3aa0..3c611f0ff 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