We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e6fde7 commit 5b6507bCopy full SHA for 5b6507b
initdemo.sh
@@ -445,10 +445,16 @@ docker compose -f docker/compose.yml exec octopus sh -c 'curl -sSL -o argocd-lin
445
446
# Wait for the Octopus server.
447
echo "Waiting for the Octopus server"
448
-until curl --output /dev/null --silent --fail http://localhost:18080/api
+max_retry=24
449
+counter=0
450
+exit_code=1
451
+until [[ "${exit_code}" == "0" ]]
452
do
- printf '.'
- sleep 5
453
+ [[ counter -eq $max_retry ]] && echo "Failed!" && echo "Check the Octopus logs with:" && echo "docker logs octopus" && exit 1
454
+ [[ counter -ne 0 ]] && sleep 5
455
+ ((counter++))
456
+ curl --output /dev/null --silent --fail http://localhost:18080/api
457
+ exit_code=$?
458
done
459
460
echo ""
0 commit comments