-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinit-hydroshare-k8s
More file actions
executable file
·20 lines (17 loc) · 962 Bytes
/
init-hydroshare-k8s
File metadata and controls
executable file
·20 lines (17 loc) · 962 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash
# init-hydroshare
# CommonsShare container intiliaization script
dropdb -U postgres -h postgis postgres
psql -U postgres -h postgis -d template1 -w -c 'CREATE EXTENSION postgis;'
psql -U postgres -h postgis -d template1 -w -c 'CREATE EXTENSION hstore;'
createdb -U postgres -h postgis postgres --encoding UNICODE --template=template1
psql -U postgres -h postgis -d postgres -w -c 'SET client_min_messages TO WARNING;'
psql -U postgres -h postgis -d postgres -q -f pg.development.sql
python manage.py collectstatic -v0 --noinput
python manage.py migrate sites --noinput
python manage.py migrate --fake-initial --noinput
python manage.py fix_permissions
python manage.py rebuild_index --noinput
curl "solr:8983/solr/admin/cores?action=RELOAD&core=collection1"
python manage.py rebuild_index --noinput
/usr/local/bin/gunicorn hydroshare.wsgi:application --workers 2 --bind=0.0.0.0:8000 --worker-class gevent --timeout 300 --name commonsshare