auth/ci/wait-up.sh

13 lines
241 B
Bash
Raw Permalink Normal View History

2023-01-10 14:28:19 +00:00
#!/bin/bash
testlog() {
docker logs v3-auth-db-test | grep -q "database system is ready to accept connections"
}
testlog 2> /dev/null
while [ $? -ne 0 ];
do
sleep 5
echo "Waiting for Test DB to be up..."
testlog 2> /dev/null
done