Skip to content
Snippets Groups Projects
Verified Commit a2280a8b authored by Martin Weise's avatar Martin Weise
Browse files

Try with socket override

parent 90ef963f
No related branches found
No related tags found
2 merge requests!395Library,!394Grafana
This commit is part of merge request !394. Comments created here will be created in the context of that merge request.
...@@ -2,6 +2,7 @@ variables: ...@@ -2,6 +2,7 @@ variables:
BUILD_VERSION: "" BUILD_VERSION: ""
HOSTALIASES: "./hosts" HOSTALIASES: "./hosts"
DOCKER_HOST: "unix:///var/run/dind/docker.sock" DOCKER_HOST: "unix:///var/run/dind/docker.sock"
TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE: "/var/run/dind/docker.sock"
DOCKER_VERSION: "27" DOCKER_VERSION: "27"
ALPINE_VERSION: "3.21" ALPINE_VERSION: "3.21"
PYTHON_VERSION: "3.11" PYTHON_VERSION: "3.11"
...@@ -171,6 +172,7 @@ test-dashboard-service: ...@@ -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/rsa ./dbrepo-dashboard-service/tests"
- "cp -r ./dbrepo-dashboard-service/init/tests/conftest.py ./dbrepo-dashboard-service/tests" - "cp -r ./dbrepo-dashboard-service/init/tests/conftest.py ./dbrepo-dashboard-service/tests"
script: script:
- echo "${TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE}"
- "pip install pipenv" - "pip install pipenv"
- "pipenv install gunicorn && pipenv install --dev --system --deploy" - "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 - 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: ...@@ -198,6 +200,7 @@ test-dashboard-service-init:
dependencies: dependencies:
- build-dashboard-service - build-dashboard-service
script: script:
- echo "${TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE}"
- "pip install pipenv" - "pip install pipenv"
- "pipenv install gunicorn && pipenv install --dev --system --deploy" - "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 - 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment