Unverified Commit 7479e100 authored by Michael Killough's avatar Michael Killough Committed by GitHub
Browse files

Merge pull request #5 from deliveroo/timeout

Add --max-time to the curl health check.
parents cc5277e9 d1c554f6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
0.2.1
0.2.2
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ set -ex

# Wait for the application to start before accepting ALB requests.
while sleep 2; do
  curl http://app:${APP_PORT}${HEALTHCHECK_PATH:-/health} && break
  curl --max-time 5 http://app:${APP_PORT}${HEALTHCHECK_PATH:-/health} && break
done

# run in foreground as pid 1