pg.ddx.io pgvector/pgvector GitHub issues and pull requests
help / color / mirror / Atom feed[pgvector/pgvector] PR #1018: Updated Dockerfile to use PostgreSQL 18 and modified build process fo…
2+ messages / 2 participants
[nested] [flat]
* [pgvector/pgvector] PR #1018: Updated Dockerfile to use PostgreSQL 18 and modified build process fo…
@ 2026-08-19 04:07 "vivek8123 (@vivek8123)" <noreply+vivek8123@github.com>
0 siblings, 0 replies; 2+ messages in thread
From: vivek8123 (@vivek8123) @ 2026-08-19 04:07 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
inline patch 1: Dockerfile, pgvector-pr.patch (+98/-18 lines) download inline-1.patch
diff --git a/Dockerfile b/Dockerfile
index c02d3ad37..9e2e65a15 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,23 +1,39 @@
# syntax=docker/dockerfile:1
-ARG PG_MAJOR=17
-ARG DEBIAN_CODENAME=bookworm
-FROM postgres:$PG_MAJOR-$DEBIAN_CODENAME
-ARG PG_MAJOR
+############################
+# Builder
+############################
+FROM postgres:18-bookworm AS builder
+
+RUN apt-get update && \
+ apt-get install -y --no-install-recommends \
+ build-essential \
+ git \
+ ca-certificates \
+ postgresql-server-dev-18 && \
+ update-ca-certificates && \
+ rm -rf /var/lib/apt/lists/*
ADD https://github.com/pgvector/pgvector.git#v0.8.5 /tmp/pgvector
-RUN apt-get update && \
- apt-mark hold locales && \
- apt-get install -y --no-install-recommends build-essential postgresql-server-dev-$PG_MAJOR && \
- cd /tmp/pgvector && \
- make clean && \
- make OPTFLAGS="" && \
- make install && \
- mkdir /usr/share/doc/pgvector && \
- cp LICENSE README.md /usr/share/doc/pgvector && \
- rm -r /tmp/pgvector && \
- apt-get remove -y build-essential postgresql-server-dev-$PG_MAJOR && \
- apt-get autoremove -y && \
- apt-mark unhold locales && \
- rm -rf /var/lib/apt/lists/*
+WORKDIR /tmp/pgvector
+
+RUN make clean && \
+ make OPTFLAGS="" && \
+ make install DESTDIR=/tmp/install
+
+############################
+# Runtime
+############################
+FROM registry.redhat.io/rhel9/postgresql-18:9.8-1784150165
+
+USER root
+
+COPY --from=builder /tmp/install/ /
+
+# OpenShift compatibility
+RUN mkdir -p /var/lib/pgsql/data /var/run/postgresql && \
+ chmod -R g=u /var/lib/pgsql /var/run/postgresql && \
+ chmod g=u /etc/passwd || true
+
+USER 26
diff --git a/pgvector-pr.patch b/pgvector-pr.patch
new file mode 100644
index 000000000..752ecb03d
--- /dev/null
+++ b/pgvector-pr.patch
@@ -0,0 +1,64 @@
+diff --git a/Dockerfile b/Dockerfile
+index 84f0069..9c16374 100644
+--- a/Dockerfile
++++ b/Dockerfile
+@@ -1,23 +1,40 @@
+ # syntax=docker/dockerfile:1
+
+-ARG PG_MAJOR=17
+-ARG DEBIAN_CODENAME=bookworm
+-FROM postgres:$PG_MAJOR-$DEBIAN_CODENAME
+-ARG PG_MAJOR
+-
+-ADD https://github.com/pgvector/pgvector.git#v0.8.6 /tmp/pgvector
++############################
++# Builder
++############################
++FROM postgres:18-bookworm AS builder
+
+ RUN apt-get update && \
+- apt-mark hold locales && \
+- apt-get install -y --no-install-recommends build-essential postgresql-server-dev-$PG_MAJOR && \
+- cd /tmp/pgvector && \
+- make clean && \
+- make OPTFLAGS="" && \
+- make install && \
+- mkdir /usr/share/doc/pgvector && \
+- cp LICENSE README.md /usr/share/doc/pgvector && \
+- rm -r /tmp/pgvector && \
+- apt-get remove -y build-essential postgresql-server-dev-$PG_MAJOR && \
+- apt-get autoremove -y && \
+- apt-mark unhold locales && \
+- rm -rf /var/lib/apt/lists/*
++ apt-get install -y --no-install-recommends \
++ build-essential \
++ git \
++ ca-certificates \
++ postgresql-server-dev-18 && \
++ update-ca-certificates && \
++ rm -rf /var/lib/apt/lists/*
++
++ADD https://github.com/pgvector/pgvector.git#v0.8.5 /tmp/pgvector
++
++WORKDIR /tmp/pgvector
++
++RUN make clean && \
++ make OPTFLAGS="" && \
++ make install DESTDIR=/tmp/install
++
++############################
++# Runtime
++############################
++FROM registry.redhat.io/rhel9/postgresql-18:9.8-1784150165
++
++USER root
++
++COPY --from=builder /tmp/install/ /
++
++# OpenShift compatibility
++RUN mkdir -p /var/lib/pgsql/data /var/run/postgresql && \
++ chmod -R g=u /var/lib/pgsql /var/run/postgresql && \
++ chmod g=u /etc/passwd || true
++
++USER 26
++
^ permalink raw [nested|flat] 2+ messages in thread
* Re: [pgvector/pgvector] PR #1018: Updated Dockerfile to use PostgreSQL 18 and modified build process fo…
@ 2026-08-19 12:35 "ankane (@ankane)" <noreply+ankane@github.com>
0 siblings, 0 replies; 2+ messages in thread
From: ankane (@ankane) @ 2026-08-19 12:35 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
@ankane closed this.
^ permalink raw [nested|flat] 2+ messages in thread
end of thread, other threads:[~2026-08-19 12:35 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-08-19 04:07 [pgvector/pgvector] PR #1018: Updated Dockerfile to use PostgreSQL 18 and modified build process fo… "vivek8123 (@vivek8123)" <noreply+vivek8123@github.com>
2026-08-19 12:35 Re: [pgvector/pgvector] PR #1018: Updated Dockerfile to use PostgreSQL 18 and modified build process fo… "ankane (@ankane)" <noreply+ankane@github.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox