Skip to content

Commit 1f44dfa

Browse files
committed
fix: revert dynamic vectorchord version discovery (pin to 0.4.3)
1 parent f01f397 commit 1f44dfa

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

Containerfile.j2

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,13 @@ WORKDIR /usr/ports/databases/pgvector
2626
RUN make DEFAULT_VERSIONS+=pgsql=${PG_VERSION} BATCH=yes install clean
2727

2828
# Build VectorChord from source
29-
ARG VECTORCHORD_VERSION=latest
30-
RUN if [ "${VECTORCHORD_VERSION}" = "latest" ]; then \
31-
VECTORCHORD_VERSION=$(fetch -qo - https://api.github.com/repos/tensorchord/VectorChord/releases/latest | grep -o '"tag_name":"[^"]*"' | head -1 | cut -d'"' -f4); \
32-
fi && \
33-
echo "Building VectorChord ${VECTORCHORD_VERSION}..." && \
34-
fetch -qo /tmp/vectorchord.tar.gz \
29+
ARG VECTORCHORD_VERSION=0.4.3
30+
RUN fetch -qo /tmp/vectorchord.tar.gz \
3531
"https://github.com/tensorchord/VectorChord/archive/refs/tags/${VECTORCHORD_VERSION}.tar.gz" && \
3632
tar -xzf /tmp/vectorchord.tar.gz -C /tmp && \
3733
cd /tmp/VectorChord-${VECTORCHORD_VERSION} && \
3834
gmake build && \
39-
gmake install && \
40-
mkdir -p /app && echo "${VECTORCHORD_VERSION}" > /app/vectorchord-version
35+
gmake install
4136

4237
# Production image
4338
FROM ghcr.io/daemonless/postgres:${PG_VERSION}

0 commit comments

Comments
 (0)