You've already forked pgvecto.rs
mirror of
https://github.com/tensorchord/pgvecto.rs.git
synced 2025-08-05 16:15:47 +03:00
chore: start bgworker by postgresql args in dockerfile (#132)
Signed-off-by: usamoi <usamoi@outlook.com>
This commit is contained in:
@@ -4,6 +4,5 @@ FROM $IMAGEPATH as binary
|
|||||||
FROM postgres:15
|
FROM postgres:15
|
||||||
|
|
||||||
COPY --from=binary /pgvecto-rs-binary-release.deb /tmp/vectors.deb
|
COPY --from=binary /pgvecto-rs-binary-release.deb /tmp/vectors.deb
|
||||||
RUN apt-get install -y /tmp/vectors.deb && \
|
RUN apt-get install -y /tmp/vectors.deb && rm -f /tmp/vectors.deb
|
||||||
rm -f /tmp/vectors.deb && \
|
CMD ["postgres","-c","shared_preload_libraries=vectors.so"]
|
||||||
echo "echo 'shared_preload_libraries = '\"'\"'vectors.so'\"'\"'' >> /var/lib/postgresql/data/postgresql.auto.conf" > /docker-entrypoint-initdb.d/vectors.sh
|
|
||||||
|
@@ -17,5 +17,3 @@ DOWNLOAD=$(curl -s $URL | grep browser_download_url | grep -o 'https://[^ ]*vect
|
|||||||
wget -O /tmp/vectors.deb $DOWNLOAD
|
wget -O /tmp/vectors.deb $DOWNLOAD
|
||||||
apt-get install -y /tmp/vectors.deb
|
apt-get install -y /tmp/vectors.deb
|
||||||
rm -f /tmp/vectors.deb
|
rm -f /tmp/vectors.deb
|
||||||
|
|
||||||
echo "echo 'shared_preload_libraries = '\"'\"'vectors.so'\"'\"'' >> /var/lib/postgresql/data/postgresql.auto.conf" > /docker-entrypoint-initdb.d/vectors.sh
|
|
||||||
|
Reference in New Issue
Block a user