From cceb5f53222a80587f0507f6cecaff2297687b38 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Thu, 27 Feb 2020 15:19:32 +0100 Subject: [PATCH] Increase timeout for downloading wasmd --- scripts/wasmd/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/wasmd/start.sh b/scripts/wasmd/start.sh index 48d03931..f0c56902 100755 --- a/scripts/wasmd/start.sh +++ b/scripts/wasmd/start.sh @@ -34,7 +34,7 @@ echo "wasmd running and logging into $WASMD_LOGFILE" # sleep 3 && cat "$WASMD_LOGFILE" # Use a large timeout because of potentially long image download in `docker run` -if ! timeout 120 bash -c "until docker inspect -f '{{.State.Running}}' '$CONTAINER_NAME' &> /dev/null; do sleep 0.5; done"; then +if ! timeout 180 bash -c "until docker inspect -f '{{.State.Running}}' '$CONTAINER_NAME' &> /dev/null; do sleep 0.5; done"; then echo "Container named '$CONTAINER_NAME' not running. We cannot continue." \ "This can happen when 'docker run' needs too long to download and start." \ "It might be worth retrying this step once the image is in the local docker cache."