From 519b532ab9acb0e7333010054417d7b227d51b82 Mon Sep 17 00:00:00 2001 From: lakkeger Date: Fri, 17 May 2024 13:49:11 +0200 Subject: [PATCH] fix(ci:gitlab): increase wait timeout on LS start --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e72834c..430efc9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -31,8 +31,9 @@ default: - mkdir -p $PIP_CACHE_DIR - python3 -m pip install localstack awscli awscli-local - docker pull localstack/localstack-pro:latest - - dind_ip="$(getent hosts docker | cut -d' ' -f1)" - - echo "${dind_ip} localhost.localstack.cloud " >> /etc/hosts + # Gitlab has changed to ipv6, but LocalStack not supporting it + - dind_ip="$(getent ahostsv4 docker | cut -d' ' -f1 | head -n1)" + - echo -e "${dind_ip}\tlocalhost.localstack.cloud\n" >> /etc/hosts - localstack start -d - localstack wait -t 30 - (test -f ./ls-state-pod.zip && localstack state import ./ls-state-pod.zip) || true @@ -57,7 +58,6 @@ deploy: script: - ./bin/deploy.sh - localstack state export ./ls-state-pod.zip - - localstack logs test: stage: test