configuration/ci/wait-up.sh

13 lines
218 B
Bash
Raw Normal View History

2023-01-25 14:16:13 +00:00
#!/bin/bash
testlog() {
2023-10-25 07:09:45 +00:00
docker logs v3-redis | grep -q "Ready to accept connections"
2023-01-25 14:16:13 +00:00
}
testlog 2> /dev/null
while [ $? -ne 0 ];
do
sleep 5
2023-10-25 07:09:45 +00:00
echo "Waiting for Test Redis to be up..."
2023-01-25 14:16:13 +00:00
testlog 2> /dev/null
done