user/ci/wait-up.sh

13 lines
241 B
Bash
Raw Normal View History

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