PYROS_DOCKER_INSTALL.bat
412 Bytes
#!/bin/bash
# if no container is running
if ! docker ps | grep -q 'db_pyros|pyros'
then
./PYROS_DOCKER_START.bat
fi
# while db container isn't ready to execute queries, wait 5 seconds
while ! docker inspect db_pyros | jq '.[].State.Health.Status' | grep -q 'healthy'
do
sleep 5
done
# db container is ready to execture queries, we can start the installation
docker exec -it pyros python3 pyros.py install