Closed mapattacker closed 2 years ago
AFAIU, you need to request the docker service in you job https://docs.gitlab.com/ee/ci/services/#using-services-with-docker-run-docker-in-docker-side-by-side
Same goes for Bitbucket Pipelines https://support.atlassian.com/bitbucket-cloud/docs/run-docker-commands-in-bitbucket-pipelines/
thanks @n1ngu, forgot about the dind~
It took make several hours to get the pipeline to work. If anyone is interested:
integration-tests:
stage: test
image: docker/compose
services:
- docker:dind
before_script:
- apk update && apk add py-pip python3-dev libffi-dev openssl-dev gcc libc-dev rust cargo make
- /usr/bin/python3.8 -m pip install --upgrade pip
script:
- pip3 install pytest==6.2.3 requests==2.25.1 pytest-docker==0.10.3
- pytest tests/integration_tests/ -v -s
Hi, I am wondering if anyone tried to use lib this in a CI/CD pipeline.
This is my gitlab-ci job
My test works in local environment, but in the CI job it seems like it can't detect docker. I even tried added in manual installation for docker & docker-compose but the result is still the same.
Thank you.