diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-05 09:09:25 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-05 09:09:25 +0300 |
commit | 962fbcfb94b13668632de822e3f7a74fb5ecaf68 (patch) | |
tree | 51bebd0983aa06a72af75f7b85c05debd5169037 /.gitpod.yml | |
parent | 24fca3804098db8d0083d35db1975d198467e9b8 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to '.gitpod.yml')
-rw-r--r-- | .gitpod.yml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.gitpod.yml b/.gitpod.yml index 6f00147ae6b..b47ede87c0a 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -57,7 +57,11 @@ tasks: # Waiting for GitLab ... gp await-port 3000 printf "Waiting for GitLab at $(gp url 3000) ..." - until $(curl -sNL $(gp url 3000) | grep -q "GitLab"); do printf '.'; sleep 5; done && echo "" + # Check /-/readiness which returns JSON, but we're only interested in the exit code + # + # We use http://localhost:3000 instead of the public hostname because + # it's no longer possible to access as specific cookies are required + until curl --silent --no-buffer --fail http://localhost:3000/-/readiness > /dev/null 2>&1; do printf '.'; sleep 5; done && echo "" # Give Gitpod a few more seconds to set up everything ... sleep 5 printf "$(date) – GitLab is up (took ~%.1f minutes)\n" "$((10*$SECONDS/60))e-1" | tee -a /workspace/startup.log |