add dockeruser to psql cmds
This commit is contained in:
parent
1f417ecb7d
commit
40fc5e4c89
@ -11,9 +11,9 @@ apt-get install -y python3 python3-pip python3-dev python3-venv
|
||||
psql -d colouringlondon -U dockeruser -c "SELECT 1 FROM pg_user WHERE usename = 'dockeruser';" | grep -q 1 || psql -d colouringlondon -U dockeruser -c "CREATE ROLE dockeruser SUPERUSER LOGIN PASSWORD 'postgres';"
|
||||
psql -d colouringlondon -U dockeruser -c "SELECT 1 FROM pg_database WHERE datname = 'colouringlondon';" | grep -q 1 || -u postgres createdb -E UTF8 -T template0 --locale=en_US.utf8 -O dockeruser colouringlondon
|
||||
|
||||
psql -d colouringlondon -c "create extension postgis;"
|
||||
psql -d colouringlondon -c "create extension pgcrypto;"
|
||||
psql -d colouringlondon -c "create extension pg_trgm;"
|
||||
psql -d colouringlondon -U dockeruser -c "create extension postgis;"
|
||||
psql -d colouringlondon -U dockeruser -c "create extension pgcrypto;"
|
||||
psql -d colouringlondon -U dockeruser -c "create extension pg_trgm;"
|
||||
|
||||
ls ./colouring-london/migrations/*.up.sql 2>/dev/null | while read -r migration; do psql -d colouringlondon < $migration; done;
|
||||
|
||||
@ -25,7 +25,7 @@ pip install -r ./colouring-london/etl/requirements.txt
|
||||
|
||||
python ./colouring-london/etl/get_test_polygons.py
|
||||
./colouring-london/etl/load_geometries_cl.sh ./
|
||||
psql -d colouringlondon < ./colouring-london/app/migrations/002.index-geometries.up.sql
|
||||
psql -d colouringlondon -U dockeruser < ./colouring-london/app/migrations/002.index-geometries.up.sql
|
||||
./create_building_records_cl.sh
|
||||
psql -d colouringlondon < ./colouring-london/app/migrations/003.index-buildings.up.sql
|
||||
psql -d colouringlondon -U dockeruser < ./colouring-london/app/migrations/003.index-buildings.up.sql
|
||||
ls ./colouring-london/migrations/*.up.sql 2>/dev/null | while read -r migration; do psql -d colouringlondon < $migration; done;
|
Loading…
Reference in New Issue
Block a user