#!/bin/bash while ! docker logs v3-user-db-test --tail=1 | grep -q -i "database system is ready to accept connections"; do sleep 5 echo "Waiting for Test DB to be up..." done