Changeset View
Changeset View
Standalone View
Standalone View
docker/services/swh-indexer-worker-journal/entrypoint.sh
- This file was added.
Property | Old Value | New Value |
---|---|---|
File Mode | null | 100755 |
#!/bin/bash | |||||
set -e | |||||
source /srv/softwareheritage/utils/pyutils.sh | |||||
setup_pip | |||||
source /srv/softwareheritage/utils/pgsql.sh | |||||
setup_pgsql | |||||
case "$1" in | |||||
"shell") | |||||
exec bash -i | |||||
;; | |||||
*) | |||||
echo Waiting for Kafka to start | |||||
wait-for-it kafka:9092 -s --timeout=0 | |||||
wait_pgsql | |||||
echo Starting swh-indexer journal-based worker | |||||
swh --log-level ${LOGLEVEL} indexer --config-file /indexer.yml journal-client '*' | |||||
;; | |||||
esac |