Skip to content

Commit 61cc285

Browse files
authored
Added create extension vector in the entrypoint.sh file for Docker (#1666)
1 parent 6b05a56 commit 61cc285

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docker/entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ sudo -u postgres psql -c "CREATE ROLE postgresml PASSWORD 'postgresml' SUPERUSER
1313
sudo -u postgres createdb postgresml --owner postgresml 2> /dev/null 1>&2
1414
sudo -u postgres psql -c 'ALTER ROLE postgresml SET search_path TO public,pgml' 2> /dev/null 1>&2
1515

16+
# Create the vector extension
17+
sudo -u postgres psql -c 'CREATE EXTENSION vector' 2> /dev/null 1>&2
18+
1619
echo "Starting dashboard"
1720
PGPASSWORD=postgresml psql -c 'CREATE EXTENSION IF NOT EXISTS pgml' \
1821
-d postgresml \

0 commit comments

Comments
 (0)