print docker logs on fail

This commit is contained in:
Anthony Stirling 2023-12-31 19:13:24 +00:00
parent b74819cf6c
commit 4fbfd0bae4

View file

@ -12,6 +12,8 @@ check_health() {
echo -n "." echo -n "."
if [ $SECONDS -ge $end ]; then if [ $SECONDS -ge $end ]; then
echo -e "\n$service_name health check timed out after 80 seconds." echo -e "\n$service_name health check timed out after 80 seconds."
echo "Printing logs for $service_name:"
docker logs "$service_name"
return 1 return 1
fi fi
done done