From c7e2c9b188764bdbd4b833c1ca5e3d5ca8181931 Mon Sep 17 00:00:00 2001 From: Russell Kirkland Date: Wed, 9 Nov 2016 14:33:23 +0000 Subject: [PATCH] Sets loop variable to 100 to allow for more retries Allows 100 retries on retry-docker-command command to enable new containers to eventually configure. --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions b/functions index b947ba4..f011376 100755 --- a/functions +++ b/functions @@ -57,7 +57,7 @@ service_create_container() { retry-docker-command() { local ID="$1" COMMAND="$2" local i=0 success=false - until [ $i -ge 10 ]; do + until [ $i -ge 100 ]; do set +e; docker exec -it "$ID" bash -c "$COMMAND" 2> /dev/null; exit_code=$? ; set -e if [[ "$exit_code" == 0 ]]; then success=true