Skip to content

Commit

Permalink
Add pgvector extension
Browse files Browse the repository at this point in the history
Signed-off-by: drivebyer <yang.wu@daocloud.io>
  • Loading branch information
drivebyer committed Aug 1, 2023
1 parent a6808c1 commit 520ad50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion postgres-appliance/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ ENV POSTGIS_VERSION=3.3 \
PAM_OAUTH2=v1.0.1 \
PLANTUNER_COMMIT=800d81bc85da64ff3ef66e12aed1d4e1e54fc006 \
PG_PERMISSIONS_COMMIT=314b9359e3d77c0b2ef7dbbde97fa4be80e31925 \
PG_TM_AUX_COMMIT=51cf42f6043608919802fcc48458471d0ea3a127
PG_TM_AUX_COMMIT=51cf42f6043608919802fcc48458471d0ea3a127 \
PGVECTOR=0.4.4

WORKDIR /builddeps
RUN bash base.sh
Expand Down
4 changes: 4 additions & 0 deletions postgres-appliance/build_scripts/base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ curl -sL "https://github.com/zalando-pg/pg_auth_mon/archive/$PG_AUTH_MON_COMMIT.
curl -sL "https://github.com/cybertec-postgresql/pg_permissions/archive/$PG_PERMISSIONS_COMMIT.tar.gz" | tar xz
curl -sL "https://github.com/hughcapet/pg_tm_aux/archive/$PG_TM_AUX_COMMIT.tar.gz" | tar xz
curl -sL "https://github.com/zubkov-andrei/pg_profile/archive/$PG_PROFILE.tar.gz" | tar xz
curl -sL "https://github.com/pgvector/pgvector/archive/v$PGVECTOR.tar.gz" | tar xz
git clone -b "$SET_USER" https://github.com/pgaudit/set_user.git
git clone https://github.com/timescale/timescaledb.git

Expand Down Expand Up @@ -167,6 +168,9 @@ for version in $DEB_PG_SUPPORTED_VERSIONS; do
if [ "${version%.*}" -ge 10 ]; then
EXTRA_EXTENSIONS+=("pg_mon-${PG_MON_COMMIT}")
fi
if [ "${version%.*}" -ge 15 ]; then
EXTRA_EXTENSIONS+=("pgvector-${PGVECTOR}")
fi
else
EXTRA_EXTENSIONS=()
fi
Expand Down

0 comments on commit 520ad50

Please sign in to comment.