Skip to content

Commit 176c2bf

Browse files
committed
feat: upgrade postgresql to v17
BREAKING CHANGE: major postgresql upgrade to v17
1 parent c0ef8cb commit 176c2bf

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

Dockerfile

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@ ARG CI_COMMIT_SHA
33
ARG CI_COMMIT_TAG
44
ARG CI_UPSTREAM_VERSION
55

6-
# pgvecto.rs binary container
7-
FROM tensorchord/pgvecto-rs-binary:pg16-v0.3.0-${TARGETARCH} as pgvectors
8-
96
# vchord binary container
10-
FROM tensorchord/vchord-binary:pg16-v0.4.3-${TARGETARCH} as vchord
7+
FROM tensorchord/vchord-binary:pg17-v0.4.3-${TARGETARCH} as vchord
118

129
# main container
13-
FROM ghcr.io/cloudnative-pg/postgresql:16.8-14@sha256:ed9bd4a26b152cf35f2c64e15f48126e3477ad222cfb04794562bdc999b8f0be
10+
FROM ghcr.io/cloudnative-pg/postgresql:17.5-7@sha256:ce4f594010149f48592359ddd87fb0ba8a99cbc871965d2aaa770d025c5c6025
1411

1512
LABEL org.opencontainers.image.authors="Daniel Muehlbachler-Pietrzykowski <daniel.muehlbachler@niftyside.com>"
1613
LABEL org.opencontainers.image.vendor="Daniel Muehlbachler-Pietrzykowski"
@@ -25,15 +22,11 @@ LABEL org.opencontainers.image.upstream="${CI_UPSTREAM_VERSION}"
2522
# use root to install binaries
2623
USER root
2724

28-
# taken from https://github.com/tensorchord/pgvecto.rs/
29-
COPY --from=pgvectors /pgvecto-rs-binary-release.deb /tmp/vectors.deb
30-
RUN apt-get install --yes --no-install-recommends /tmp/vectors.deb && rm -f /tmp/vectors.deb
31-
3225
# taken from https://github.com/tensorchord/VectorChord/
3326
COPY --from=vchord /workspace/postgresql-*.deb /tmp/vchord.deb
3427
RUN apt-get install --yes --no-install-recommends /tmp/vchord.deb && rm -f /tmp/vchord.deb
3528

3629
# set user back to postgres
3730
USER 26
3831

39-
CMD ["postgres", "-c" ,"shared_preload_libraries=vchord.so,vectors.so", "-c", "search_path=\"$user\", public, vectors", "-c", "logging_collector=on"]
32+
CMD ["postgres", "-c" ,"shared_preload_libraries=vchord.so", "-c", "search_path=\"$user\", public, vectors", "-c", "logging_collector=on"]

0 commit comments

Comments
 (0)