Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
6141140beb |
@@ -218,14 +218,21 @@ jobs:
|
|||||||
echo "📋 Recent container logs:"
|
echo "📋 Recent container logs:"
|
||||||
docker logs --tail 10 ping-river-monitor-test || true
|
docker logs --tail 10 ping-river-monitor-test || true
|
||||||
|
|
||||||
# Wait for the application to be ready
|
# Wait for the application to be ready with more robust checking
|
||||||
for i in {1..12}; do
|
echo "🔍 Testing application readiness..."
|
||||||
if curl -f http://127.0.0.1:8080/health; then
|
for i in {1..15}; do
|
||||||
echo "✅ Health endpoint responding"
|
echo "⏳ Attempt $i/15: Testing health endpoint..."
|
||||||
|
|
||||||
|
# Use curl with more verbose output and longer timeout
|
||||||
|
if curl -f -s --max-time 10 --connect-timeout 5 http://127.0.0.1:8080/health; then
|
||||||
|
echo "✅ Health endpoint responding successfully!"
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
echo "⏳ Waiting for health endpoint... (attempt $i/12)"
|
echo "❌ Health check failed, waiting 15 seconds..."
|
||||||
sleep 10
|
# Show what's happening with the container
|
||||||
|
echo "Container status:"
|
||||||
|
docker ps | grep ping-river-monitor-test || echo "Container not found"
|
||||||
|
sleep 15
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user