File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,11 @@ CODER_DEV_SHIM="${PROJECT_ROOT}/scripts/coder-dev.sh"
62
62
" ${CODER_DEV_SHIM} " server --address 0.0.0.0:3000 || kill -INT -$$ &
63
63
64
64
echo ' == Waiting for Coder to become ready'
65
- timeout 60s bash -c ' until curl -s --fail http://localhost:3000/healthz > /dev/null 2>&1; do sleep 0.5; done'
65
+ curl --silent --fail --connect-timeout 1 --max-time 1 --retry 60 --retry-delay 1 --retry-max-time 60 --retry-all-errors ' http://localhost:3000/healthz' ||
66
+ {
67
+ echo ' == ERROR: Coder did not become ready in time'
68
+ kill -INT -$$
69
+ }
66
70
67
71
# Check if credentials are already set up to avoid setting up again.
68
72
" ${CODER_DEV_SHIM} " list > /dev/null 2>&1 && touch " ${PROJECT_ROOT} /.coderv2/developsh-did-first-setup"
You can’t perform that action at this time.
0 commit comments