Changeset View
Changeset View
Standalone View
Standalone View
services/swh-indexer-storage/entrypoint.sh
Show All 11 Lines | case "$1" in | ||||
"shell") | "shell") | ||||
exec bash -i | exec bash -i | ||||
;; | ;; | ||||
*) | *) | ||||
wait_pgsql | wait_pgsql | ||||
echo Setup the database | echo Setup the database | ||||
PGPASSWORD=${POSTGRES_PASSWORD} swh-db-init indexer \ | PGPASSWORD=${POSTGRES_PASSWORD} swh db-init \ | ||||
--db-name ${POSTGRES_DB} | --db-name ${POSTGRES_DB} indexer | ||||
echo Starting the swh-indexer-storage API server | echo Starting the swh-indexer-storage API server | ||||
exec gunicorn --bind 0.0.0.0:5007 \ | exec gunicorn --bind 0.0.0.0:5007 \ | ||||
--reload \ | --reload \ | ||||
--threads 2 \ | --threads 2 \ | ||||
--workers 2 \ | --workers 2 \ | ||||
--log-level DEBUG \ | --log-level DEBUG \ | ||||
--timeout 3600 \ | --timeout 3600 \ | ||||
swh.indexer.storage.api.wsgi | swh.indexer.storage.api.wsgi | ||||
;; | ;; | ||||
esac | esac |