fix: nginx build context, playout health check retry loop
This commit is contained in:
1 parent
afb9a41404
commit
43c1a31660
2 files changed
+31
-9
No files matched your search
+14
-2
@@ -69,9 +69,21 @@ jobs:
|
||||
env:
|
||||
DOCKER_HOST: tcp://192.168.88.40:2375
|
||||
run: |
|
||||
sleep 10
|
||||
# Wait for playout to stabilize (it may restart during init)
|
||||
sleep 20
|
||||
curl -f http://192.168.88.40:3000/health || exit 1
|
||||
docker exec linearvoid-playout curl -sf http://localhost
|
||||
# Retry playout health check since it may still be initializing
|
||||
for i in $(seq 1 6); do
|
||||
if docker exec linearvoid-playout curl -sf http://localhost:8081/health; then
|
||||
echo "Playout is healthy"
|
||||
exit 0
|
||||
fi
|
||||
echo "Playout not ready yet (attempt $i/6), waiting 5s..."
|
||||
sleep 5
|
||||
done
|
||||
echo "Playout failed to become healthy after 6 attempts"
|
||||
docker logs linearvoid-playout --tail 50
|
||||
exit 1
|
||||
curl -f http://192.168.88.40:3000/health || exit 1
|
||||
docker exec linearvoid-playout curl -sf http://localhost:8081/health || exit 1
|
||||
|
||||
|
||||
Reference in new issue
Block a user