Skip to content

Commit

Permalink
debug(ci:gitlab): LS service debug
Browse files Browse the repository at this point in the history
  • Loading branch information
lakkeger committed Feb 15, 2024
1 parent b635929 commit 959040e
Showing 1 changed file with 29 additions and 22 deletions.
51 changes: 29 additions & 22 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,38 @@ variables:
AWS_DEFAULT_REGION: us-east-1
AWS_REGION: us-east-1
AWS_ENDPOINT_URL: http://localhost.localstack.cloud:4566
DEBUG: 1
LS_LOG: "trace"
PIP_CACHE_DIR: $CI_PROJECT_DIR/.cache/pip
LOCALSTACK_AUTH_TOKEN: $LOCALSTACK_AUTH_TOKEN

services:
- name: docker:20.10.21-dind-alpine3.17
alias: docker
command: ["--tls=false"]
- name: localstack/localstack-pro:latest
alias: localstack
variables:
LOCALSTACK_AUTH_TOKEN: '${LS_AUTH_TOKEN}'
DOCKER_HOST: tcp://docker:2375
DOCKER_TLS_VERIFY: "false"

default:
services:
- name: docker:20.10.21-dind-alpine3.17
alias: docker
command: ["--tls=false"]
- name: localstack/localstack-pro:latest
alias: localstack
variables:
DOCKER_HOST: tcp://docker:2375
DOCKER_TLS_CERTDIR: ""
DOCKER_TLS_VERIFY: "false"
before_script:
- mkdir -p $CI_PROJECT_DIR/.cache/pip
- apt-get update && apt-get install -y zip jq
- pip install localstack
- pip install -r requirements-dev.txt
- LS_IP="$(getent hosts localstack | cut -d' ' -f1)"
- echo "${LS_IP} localhost.localstack.cloud " >> /etc/hosts
- (test -f ./ls-state-pod.zip && localstack state import ./ls-state-pod.zip) || true
before_script: |
apt-get update && apt-get install -y ca-certificates curl
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update
apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
apt-get install -y zip jq
mkdir -p $PIP_CACHE_DIR
pip install localstack
pip install -r requirements-dev.txt
LS_IP="$(getent hosts localstack | cut -d' ' -f1)"
echo "${LS_IP} localhost.localstack.cloud " >> /etc/hosts
(test -f ./ls-state-pod.zip && localstack state import ./ls-state-pod.zip) || true
cache:
paths:
- $CI_PROJECT_DIR/.cache/pip
Expand All @@ -50,6 +58,5 @@ deploy:

test:
stage: test
allow_failure: true
script:
- pytest tests

0 comments on commit 959040e

Please sign in to comment.