Skip to content

Commit 519b532

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.gitlab-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ default:
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+
# Gitlab has changed to ipv6, but LocalStack not supporting it
35+
- dind_ip="$(getent ahostsv4 docker | cut -d' ' -f1 | head -n1)"
36+
- echo -e "${dind_ip}\tlocalhost.localstack.cloud\n" >> /etc/hosts
3637
- localstack start -d
3738
- localstack wait -t 30
3839
- (test -f ./ls-state-pod.zip && localstack state import ./ls-state-pod.zip) || true
@@ -57,7 +58,6 @@ deploy:
5758
script:
5859
- ./bin/deploy.sh
5960
- localstack state export ./ls-state-pod.zip
60-
- localstack logs
6161

6262
test:
6363
stage: test

0 commit comments

Comments
 (0)