2023-01-09 14:08:45 +00:00
|
|
|
#!/bin/bash
|
2023-01-10 11:04:57 +00:00
|
|
|
testlog() {
|
2023-03-17 10:04:54 +00:00
|
|
|
docker logs v3-db | grep -q "database system is ready to accept connections"
|
2023-01-10 11:04:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|