fix: pgvecto.rs 0.3.0 installation on pg17 (#222)

This commit is contained in:
Sergey Katsubo
2025-05-24 13:55:03 +03:00
committed by GitHub
parent 1f83981559
commit b56ef879a4

View File

@@ -14,7 +14,7 @@ RUN apt-get update && \
apt-get install -y wget && \
wget -nv -O /tmp/vchord.deb https://github.com/tensorchord/VectorChord/releases/download/$VECTORCHORD_TAG/postgresql-${PG_MAJOR%.*}-vchord_${VECTORCHORD_TAG#"v"}-1_${TARGETARCH}.deb && \
if [ -n "$PGVECTORS_TAG" ]; then \
wget -nv -O /tmp/pgvectors.deb https://github.com/tensorchord/pgvecto.rs/releases/download/v$PGVECTORS_TAG/vectors-pg${PG_MAJOR%.*}_${PGVECTORS_TAG#"v"}_${TARGETARCH}$(if [ "$PGVECTORS_TAG" = '0.3.0']; then echo "_vectors"; fi).deb; \
wget -nv -O /tmp/pgvectors.deb https://github.com/tensorchord/pgvecto.rs/releases/download/v$PGVECTORS_TAG/vectors-pg${PG_MAJOR%.*}_${PGVECTORS_TAG#"v"}_${TARGETARCH}$(if [ "$PGVECTORS_TAG" = '0.3.0' ]; then echo "_vectors"; fi).deb; \
apt-get install -y /tmp/pgvectors.deb; \
rm -f /tmp/pgvectors.deb; \
fi && \