Skip to content

Commit

Permalink
fix(ci:gitlab): increase wait timeout on LS start
Browse files Browse the repository at this point in the history
  • Loading branch information
lakkeger committed May 23, 2024
1 parent 1d1912d commit 1756bef
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,26 @@ services:
default:
before_script: &default_before_scripts
- apk update
- apk add --no-cache gcc musl-dev linux-headers bash zip jq curl py3-psutil python3
- apk add --no-cache gcc musl-dev linux-headers bash zip jq curl py3-psutil python3 bind-tools
- python3 -m ensurepip
- python3 -m pip install --no-cache --upgrade pip setuptools
- 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
- 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
- localstack wait -t 90
- (test -f ./ls-state-pod.zip && localstack state import ./ls-state-pod.zip) || true
- localstack logs
- docker ps
- getent ahostsv4 docker
- cat /etc/hosts
- getent ahostsv4 localhost.localstack.cloud
- curl http://docker:4566/_localstack/health
- curl http://docker:4566/_localstack/diagnose
- curl -v http://localhost.localstack.cloud:4566/_localstack/health
- curl -v http://localhost.localstack.cloud:4566/_localstack/diagnose
cache:
paths:
- $CI_PROJECT_DIR/.cache/pip
Expand All @@ -57,7 +66,6 @@ deploy:
script:
- ./bin/deploy.sh
- localstack state export ./ls-state-pod.zip
- localstack logs

test:
stage: test
Expand Down

0 comments on commit 1756bef

Please sign in to comment.