From bfe1e2f65580172107b4848a153e51424a3152b7 Mon Sep 17 00:00:00 2001 From: Jiri Pechanec Date: Wed, 31 Jul 2024 13:51:42 +0200 Subject: [PATCH] DBZ-8121 Install pgvector extension --- postgres/15/Dockerfile | 3 +++ postgres/16/Dockerfile | 3 +++ 2 files changed, 6 insertions(+) diff --git a/postgres/15/Dockerfile b/postgres/15/Dockerfile index 70299940..b5ab3a44 100644 --- a/postgres/15/Dockerfile +++ b/postgres/15/Dockerfile @@ -41,6 +41,9 @@ RUN apt-get update \ postgresql-$PG_MAJOR-postgis-$POSTGIS_VERSION-scripts \ postgis; \ fi \ + && if [ "$USE_PGVECTOR" != "false" ]; then apt-get install -f -y --no-install-recommends \ + postgresql-$PG_MAJOR-pgvector; \ + fi \ && add-apt-repository "deb http://ftp.debian.org/debian testing main contrib" \ && apt-get update && apt-get install -f -y --no-install-recommends \ libprotobuf-c1 \ diff --git a/postgres/16/Dockerfile b/postgres/16/Dockerfile index 02c6e4eb..c99a7ade 100644 --- a/postgres/16/Dockerfile +++ b/postgres/16/Dockerfile @@ -41,6 +41,9 @@ RUN apt-get update \ postgresql-$PG_MAJOR-postgis-$POSTGIS_VERSION-scripts \ postgis; \ fi \ + && if [ "$USE_PGVECTOR" != "false" ]; then apt-get install -f -y --no-install-recommends \ + postgresql-$PG_MAJOR-pgvector; \ + fi \ && add-apt-repository "deb http://ftp.debian.org/debian testing main contrib" \ && apt-get update && apt-get install -f -y --no-install-recommends \ libprotobuf-c1 \