Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: try to use custom Dockerfile for pgvector support
- Loading branch information
Showing
3 changed files
with
20 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CREATE EXTENSION vector; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Start from the PostGIS image | ||
# mdillon/postgis is postgres + PostGIS (only). if you need additional | ||
# extensions, it's probably time to create a purpose-built image with all | ||
# necessary extensions. sorry, and thanks for adding support for them! | ||
FROM postgis/postgis:14-3.3 | ||
|
||
# Install git | ||
RUN apt-get update && apt-get install -y git make gcc postgresql-server-dev-all | ||
|
||
# Clone the pgvector repository | ||
RUN git clone --branch v0.6.2 https://github.com/pgvector/pgvector.git | ||
|
||
COPY 01_init.sql /docker-entrypoint-initdb.d/ | ||
|
||
# Build and install the pgvector extension | ||
WORKDIR /pgvector | ||
RUN make && make install |