Skip to content

Commit

Permalink
support pgvector
Browse files Browse the repository at this point in the history
  • Loading branch information
zlianzhuang committed Sep 6, 2023
1 parent 366480c commit a9ebfa1
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 9 deletions.
6 changes: 6 additions & 0 deletions image/postgresql/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ RUN python3 -m pip install --trusted-host mirrors.aliyun.com psycopg2-binary -i
python3 setup.py build; \
python3 setup.py install --home=/var/lib/postgresql/barman --install-lib=/var/lib/postgresql/barman/lib;

ADD pgvector /usr/src/pgvector
RUN cd /usr/src/pgvector; \
git checkout {{ .pgvector }}; \
make PG_CONFIG=/var/lib/postgresql/bin/pg_config -j `expr $(nproc) - 2` >/dev/null; \
make install PG_CONFIG=/var/lib/postgresql/bin/pg_config;

RUN cd /var/lib/postgresql; \
tar czhvf lib.tar.gz `find . -type f | xargs ldd 2>/dev/null | grep "=>" | cut -d ">" -f 2 | cut -d "(" -f 1 | sort -u`

Expand Down
2 changes: 1 addition & 1 deletion operatorversions.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"clusterrolebinding": "radondb-postgres-operator-rolebinding-cluster",
"rolebinding": "radondb-postgres-operator-rolebinding-role",
"name": "radondb-postgres-operator",
"image": "radondb/radondb-postgres-operator:v1.3.0",
"image": "radondb/radondb-postgres-operator:v1.3.1",
"datapath": "/data",
"imageRegistry": "",
"namespaceOverride": ""
Expand Down
12 changes: 8 additions & 4 deletions pgversions.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"pgaudit": "1.4.3",
"postgres_aws_s3": "v1.0.0",
"name": "radondb-postgresql",
"version": "v1.3.0",
"version": "v1.3.1",
"pgvector": "v0.5.0",
"arches": [
"aarch64",
"x86_64"
Expand All @@ -31,7 +32,8 @@
"pgaudit": "1.5.2",
"postgres_aws_s3": "v1.0.0",
"name": "radondb-postgresql",
"version": "v1.3.0",
"version": "v1.3.1",
"pgvector": "v0.5.0",
"arches": [
"aarch64",
"x86_64"
Expand All @@ -50,7 +52,8 @@
"pgaudit": "1.6.2",
"postgres_aws_s3": "v1.0.0",
"name": "radondb-postgresql",
"version": "v1.3.0",
"version": "v1.3.1",
"pgvector": "v0.5.0",
"arches": [
"aarch64",
"x86_64"
Expand All @@ -69,7 +72,8 @@
"pgaudit": "1.7.0",
"postgres_aws_s3": "v1.0.0",
"name": "radondb-postgresql",
"version": "v1.3.0",
"version": "v1.3.1",
"pgvector": "v0.5.0",
"arches": [
"aarch64",
"x86_64"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ spec:
priorityClassName: system-cluster-critical
containers:
- name: radondb-postgres-operator
image: radondb/radondb-postgres-operator:v1.3.0
image: radondb/radondb-postgres-operator:v1.3.1
imagePullPolicy: IfNotPresent
resources:
limits:
Expand Down
6 changes: 3 additions & 3 deletions platforms/kubernetes/postgres-operator/deploy/postgresql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ spec:
terminationGracePeriodSeconds: 60
# priorityClassName: high-priority
containers:
- image: radondb-postgresql:15.3-v1.3.0
- image: radondb-postgresql:15.3-v1.3.1
imagePullPolicy: IfNotPresent
name: postgresql #can't change the name
volumeMounts:
Expand Down Expand Up @@ -100,7 +100,7 @@ spec:
podspec:
terminationGracePeriodSeconds: 60
containers:
- image: radondb-postgresql:15.3-v1.3.0
- image: radondb-postgresql:15.3-v1.3.1
imagePullPolicy: IfNotPresent
name: postgresql #can't change the name
volumeMounts:
Expand Down Expand Up @@ -134,7 +134,7 @@ spec:
podspec:
terminationGracePeriodSeconds: 60
containers:
- image: radondb-postgresql:15.3-v1.3.0
- image: radondb-postgresql:15.3-v1.3.1
imagePullPolicy: IfNotPresent
name: postgresql #can't change the name
volumeMounts:
Expand Down
1 change: 1 addition & 0 deletions source_code/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ postgis
barman
pgaudit
postgres-aws-s3
pgvector
3 changes: 3 additions & 0 deletions source_code/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,7 @@ download_source_code "pgaudit" "https://github.com/pgaudit/pgaudit.git"
# postgres-aws-s3
download_source_code "postgres-aws-s3" "https://github.com/radondb/postgres-aws-s3.git"

# pgvector
download_source_code "pgvector" "https://github.com/pgvector/pgvector.git"

exit 0

0 comments on commit a9ebfa1

Please sign in to comment.