Changeset View
Changeset View
Standalone View
Standalone View
docker/services/swh-worker/entrypoint.sh
#!/bin/bash | #!/bin/bash | ||||
set -e | set -e | ||||
source /srv/softwareheritage/utils/pyutils.sh | source /srv/softwareheritage/utils/pyutils.sh | ||||
setup_pip | setup_pip | ||||
case "$1" in | case "$1" in | ||||
"shell") | "shell") | ||||
exec bash -i | shift | ||||
echo "Running command $@" | |||||
exec bash -i "$@" | |||||
vsellier: looks like there is something wrong with the identation.
it's the same for the other case… | |||||
;; | |||||
"swh") | |||||
shift | |||||
wait-for-it swh-storage:5002 -s --timeout=0 | |||||
echo "Running swh command $@" | |||||
exec swh $@ | |||||
;; | ;; | ||||
*) | *) | ||||
echo Waiting for RabbitMQ to start | echo Waiting for RabbitMQ to start | ||||
wait-for-it amqp:5672 -s --timeout=0 | wait-for-it amqp:5672 -s --timeout=0 | ||||
echo Register task types in scheduler database | echo Register task types in scheduler database | ||||
wait-for-it swh-scheduler:5008 -s --timeout=0 | wait-for-it swh-scheduler:5008 -s --timeout=0 | ||||
swh scheduler --url ${SWH_SCHEDULER_INSTANCE} task-type register | swh scheduler --url ${SWH_SCHEDULER_INSTANCE} task-type register | ||||
Show All 11 Lines |
looks like there is something wrong with the identation.
it's the same for the other case sections.