conductor-worker-python/docker/provisioning/entrypoint.sh

15 lines
337 B
Bash
Raw Normal View History

2020-10-30 19:19:31 +01:00
#!/bin/bash
2021-05-12 15:47:15 +02:00
export HEALTH=${CONDUCTOR_HEALTH:-http://conductor-server:8080/health}
2020-10-30 19:19:31 +01:00
2021-05-12 15:47:15 +02:00
echo 'Waiting for Conductor at ' $HEALTH ' ...'
2020-10-30 19:19:31 +01:00
2021-05-12 15:47:15 +02:00
while [[ "$(curl -s -o /dev/null -L -w ''%{http_code}'' $HEALTH)" != 200 ]]; do
2020-10-30 19:19:31 +01:00
echo 'still waiting ...'
sleep 5
done
echo 'Starting provisioning workers...'
python3 PyExec.py Ansible Packer