From eb5573b1c7439721d97e6d99a85f2643ce2eafeb Mon Sep 17 00:00:00 2001 From: John Pruitt Date: Thu, 24 Oct 2024 18:24:16 -0500 Subject: [PATCH] pgai version 0.4.0 (#488) --- Dockerfile | 8 ++------ Makefile | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index c5927e2a..a233002f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -197,17 +197,13 @@ RUN set -ex; \ ARG PGAI_VERSION RUN set -ex; \ if [ "${PG_MAJOR}" -gt 15 ] && [ -n "${PGAI_VERSION}" ]; then \ - git clone https://github.com/timescale/pgai.git /build/pgai; \ + git clone --branch "${PGAI_VERSION}" https://github.com/timescale/pgai.git /build/pgai; \ cd /build/pgai; \ - git checkout "${PGAI_VERSION}"; \ - git reset HEAD --hard; \ for pg in ${PG_VERSIONS}; do \ if [ "$pg" -gt 15 ]; then \ - cp /build/pgai/ai--*.sql "$(/usr/lib/postgresql/${pg}/bin/pg_config --sharedir)/extension/"; \ - cp /build/pgai/ai.control "$(/usr/lib/postgresql/${pg}/bin/pg_config --sharedir)/extension/"; \ + PG_MAJOR=${pg} make install; \ fi; \ done; \ - pip install -r /build/pgai/requirements.txt; \ fi # Add a couple 3rd party extension managers to make extension additions easier diff --git a/Makefile b/Makefile index 5343fc14..42d790a6 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ PG_MAJOR?=16 PG_VERSIONS?= # Additional PostgreSQL extensions we want to include with specific version/commit tags -PGAI_VERSION?=v0.3.0 +PGAI_VERSION?=extension-0.4.0 PGVECTORSCALE_VERSIONS?=all POSTGIS_VERSIONS?=3 PG_AUTH_MON?=v2.0