Skip to content

Commit 1756bef

Browse files
committed
fix(ci:gitlab): increase wait timeout on LS start
1 parent 1d1912d commit 1756bef

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.gitlab-ci.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,26 @@ services:
2525
default:
2626
before_script: &default_before_scripts
2727
- apk update
28-
- apk add --no-cache gcc musl-dev linux-headers bash zip jq curl py3-psutil python3
28+
- apk add --no-cache gcc musl-dev linux-headers bash zip jq curl py3-psutil python3 bind-tools
2929
- python3 -m ensurepip
3030
- python3 -m pip install --no-cache --upgrade pip setuptools
3131
- mkdir -p $PIP_CACHE_DIR
3232
- python3 -m pip install localstack awscli awscli-local
3333
- docker pull localstack/localstack-pro:latest
34-
- dind_ip="$(getent hosts docker | cut -d' ' -f1)"
35-
- echo "${dind_ip} localhost.localstack.cloud " >> /etc/hosts
34+
- dind_ip="$(getent ahostsv4 docker | cut -d' ' -f1 | head -n1)"
35+
- echo -e "${dind_ip}\tlocalhost.localstack.cloud\n" >> /etc/hosts
3636
- localstack start -d
37-
- localstack wait -t 30
37+
- localstack wait -t 90
3838
- (test -f ./ls-state-pod.zip && localstack state import ./ls-state-pod.zip) || true
39+
- localstack logs
40+
- docker ps
41+
- getent ahostsv4 docker
42+
- cat /etc/hosts
43+
- getent ahostsv4 localhost.localstack.cloud
44+
- curl http://docker:4566/_localstack/health
45+
- curl http://docker:4566/_localstack/diagnose
46+
- curl -v http://localhost.localstack.cloud:4566/_localstack/health
47+
- curl -v http://localhost.localstack.cloud:4566/_localstack/diagnose
3948
cache:
4049
paths:
4150
- $CI_PROJECT_DIR/.cache/pip
@@ -57,7 +66,6 @@ deploy:
5766
script:
5867
- ./bin/deploy.sh
5968
- localstack state export ./ls-state-pod.zip
60-
- localstack logs
6169

6270
test:
6371
stage: test

0 commit comments

Comments
 (0)