From a2280a8bd03a4fc0427a38c0d73482f95d8b3a29 Mon Sep 17 00:00:00 2001 From: Martin Weise <martin.weise@tuwien.ac.at> Date: Sat, 22 Mar 2025 18:56:12 +0100 Subject: [PATCH] Try with socket override Signed-off-by: Martin Weise <martin.weise@tuwien.ac.at> --- .gitlab-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1922772a37..23e78f8865 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,6 +2,7 @@ variables: BUILD_VERSION: "" HOSTALIASES: "./hosts" DOCKER_HOST: "unix:///var/run/dind/docker.sock" + TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE: "/var/run/dind/docker.sock" DOCKER_VERSION: "27" ALPINE_VERSION: "3.21" PYTHON_VERSION: "3.11" @@ -171,6 +172,7 @@ test-dashboard-service: - "cp -r ./dbrepo-dashboard-service/init/tests/rsa ./dbrepo-dashboard-service/tests" - "cp -r ./dbrepo-dashboard-service/init/tests/conftest.py ./dbrepo-dashboard-service/tests" script: + - echo "${TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE}" - "pip install pipenv" - "pipenv install gunicorn && pipenv install --dev --system --deploy" - cd ./dbrepo-dashboard-service/ && coverage run --rcfile=.coveragerc -m pytest tests/test_integration_app.py && coverage html && coverage xml && coverage report > ./coverage.txt @@ -198,6 +200,7 @@ test-dashboard-service-init: dependencies: - build-dashboard-service script: + - echo "${TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE}" - "pip install pipenv" - "pipenv install gunicorn && pipenv install --dev --system --deploy" - cd ./dbrepo-dashboard-service/init/ && coverage run --rcfile=.coveragerc -m pytest tests/test_app.py tests/test_integration_dashboard.py && coverage html && coverage xml && coverage report > ./coverage.txt -- GitLab