Skip to content

Commit

Permalink
feat: upgrade pgai extension to 0.7.0
Browse files Browse the repository at this point in the history
Signed-off-by: Sergio Moya <1083296+smoya@users.noreply.github.com>
  • Loading branch information
smoya committed Jan 20, 2025
1 parent 64f8720 commit f48979e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,15 @@ RUN set -ex; \
python3-dev \
apache-arrow-dev \
py3-pip; \
# Upgrade pip to 24.3.1 to match the version in the ha timescaledb-docker image.
python3 -m pip install --upgrade pip==24.3.1; \
git clone --branch ${PGAI_VERSION} https://github.com/timescale/pgai.git /build/pgai; \
cd /build/pgai; \
# note: this is a hack. pyarrow will be built from source, so must be pinned to this arrow version \
echo pyarrow==$(pkg-config --modversion arrow) >> ./projects/extension/requirements.txt; \
echo pyarrow==$(pkg-config --modversion arrow) >> ./projects/extension/requirements-lock.txt; \
if [ "$TARGETARCH" == "386" ]; then \
# note: pinned because pandas 2.2.0-2.2.3 on i386 is affected by https://github.com/pandas-dev/pandas/issues/59905 \
echo pandas==2.1.4 >> ./projects/extension/requirements.txt; \
echo pandas==2.1.4 >> ./projects/extension/requirements-lock.txt; \
# note: no prebuilt binaries for pillow on i386 \
apk add --no-cache --virtual .pgai-deps-386 \
jpeg-dev \
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,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=extension-0.6.0
PGAI_VERSION=extension-0.7.0

COMMON_BUILD_ARGS= --build-arg TS_VERSION=$(TS_VERSION) \
--build-arg PREV_IMAGE=$(PREV_IMAGE) \
Expand Down

0 comments on commit f48979e

Please sign in to comment.