inital commit

This commit is contained in:
2022-07-18 11:13:53 -04:00
commit cf2e1ed21f
12 changed files with 244 additions and 0 deletions

10
docker/psql/Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM postgres:14
RUN apt-get update
RUN apt-get -y install python3 \
python3-pip \
postgresql-plpython3-14
RUN python3 -m pip install sentence-transformers
ADD init.sql /docker-entrypoint-initdb.d

1
docker/psql/init.sql Normal file
View File

@@ -0,0 +1 @@
CREATE EXTENSION plpython3u

3
docker/psql/setup.sh Normal file
View File

@@ -0,0 +1,3 @@
pip install sentence-transformers
apt-get update && apt-get install postgresql-plpython3