From f2e0957c57c7c12b55cd5cf9fc5bc32b1a7956f4 Mon Sep 17 00:00:00 2001 From: John Pruitt Date: Fri, 25 Oct 2024 08:11:10 -0500 Subject: [PATCH] feat: add pgai extension version 0.4.0 (#276) --- Dockerfile | 5 ++--- Makefile | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index ccea763..d510569 100644 --- a/Dockerfile +++ b/Dockerfile @@ -74,9 +74,8 @@ RUN set -ex; \ python3-dev \ py3-pip; \ git clone --branch ${PGAI_VERSION} https://github.com/timescale/pgai.git /build/pgai; \ - cp /build/pgai/ai--*.sql /usr/local/share/postgresql/extension/; \ - cp /build/pgai/ai.control /usr/local/share/postgresql/extension/; \ - pip install --verbose --break-system-packages -r /build/pgai/requirements.txt; \ + cd /build/pgai; \ + PG_BIN="/usr/local/bin" PG_MAJOR=${PG_MAJOR_VERSION} make install; \ apk del .pgai-deps; \ fi diff --git a/Makefile b/Makefile index 104c564..3531b08 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ TAG=-t $(TAG_VERSION) $(if $(BETA),,-t $(TAG_LATEST)) TAG_OSS=-t $(TAG_VERSION)-oss $(if $(BETA),,-t $(TAG_LATEST)-oss) PGVECTOR_VERSION=v0.7.2 -PGAI_VERSION=v0.3.0 +PGAI_VERSION=extension-0.4.0 default: image