From 507d1d24a37f130b5eca886bdc10a88a3b6d2ce0 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 e8c45870..ffb6ac65 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 818e4a0f..941f985d 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 \