@@ -25,17 +25,26 @@ services:
25
25
default :
26
26
before_script : &default_before_scripts
27
27
- 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
29
29
- python3 -m ensurepip
30
30
- python3 -m pip install --no-cache --upgrade pip setuptools
31
31
- mkdir -p $PIP_CACHE_DIR
32
32
- python3 -m pip install localstack awscli awscli-local
33
33
- 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
36
36
- localstack start -d
37
- - localstack wait -t 30
37
+ - localstack wait -t 90
38
38
- (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
39
48
cache :
40
49
paths :
41
50
- $CI_PROJECT_DIR/.cache/pip
@@ -57,7 +66,6 @@ deploy:
57
66
script :
58
67
- ./bin/deploy.sh
59
68
- localstack state export ./ls-state-pod.zip
60
- - localstack logs
61
69
62
70
test :
63
71
stage : test
0 commit comments