From 7bd582f7d5d8a74b0d6897882e217d05d306b98a Mon Sep 17 00:00:00 2001 From: bo0tzz Date: Sun, 26 Nov 2023 14:24:06 +0000 Subject: [PATCH] Initial attempt at building pgvecto.rs --- Dockerfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c1234f2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +ARG PG_TAG + +FROM rust:1.74.0-bullseye as build + +ARG PG_TAG +ARG PGVECTORS_TAG=v0.1.10 + +RUN apt update && apt install -y build-essential libpq-dev libssl-dev pkg-config gcc libreadline-dev flex bison libxml2-dev libxslt-dev libxml2-utils xsltproc zlib1g-dev ccache clang git + +WORKDIR /build +RUN git clone --depth 1 --branch $PGVECTORS_TAG https://github.com/tensorchord/pgvecto.rs.git . +RUN cargo install cargo-pgrx --version $(grep '^pgrx ' Cargo.toml | awk -F'\"' '{print $2}') +RUN cargo pgrx init +RUN cargo pgrx package + +# pull pgvectors +# build and package pgvectors + +# FROM ghcr.io/cloudnative-pg/postgresql:$PG_TAG + +# copy pgvectors package +# build pgvectors