Skip to content

Commit 3ad6a3b

Browse files
committed
Add wait to init script
1 parent 13e1447 commit 3ad6a3b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

analytics/dev/init-gitlab.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
#!/bin/bash
22

3+
# Wait for gitlab to be up
4+
echo "Waiting for GitLab..."
5+
until curl -s -f -o /dev/null "http://localhost:8080"
6+
do
7+
sleep 5
8+
done
9+
echo "Done."
10+
311
# Set root user password + create a personal access token for it
412
PERSONAL_ACCESS_TOKEN="insecure_token"
513
docker compose exec gitlab gitlab-rails runner " \

0 commit comments

Comments
 (0)