diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 40f5ddc79..ae9fd12bb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -249,13 +249,14 @@ docker:test:run: <<: *multi_platform # needs: # - docker:build:cross-platform - script: + before_script: - docker volume create config + - cp etc/config/config.example.dind.yaml /var/lib/docker/volumes/config/_data/config.yaml - docker volume create --opt type=tmpfs --opt device=tmpfs cache + script: - > - docker run --rm -d --pid=host + docker run --rm -td --name knot-resolver - --network host -v config:/etc/knot-resolver -v cache:/var/cache/knot-resolver ${GITLAB_REGISTRY}:${CI_COMMIT_REF_NAME} diff --git a/etc/config/config.example.dind.yaml b/etc/config/config.example.dind.yaml new file mode 100644 index 000000000..528092088 --- /dev/null +++ b/etc/config/config.example.dind.yaml @@ -0,0 +1,10 @@ +workers: 2 +logging: + level: info +network: + listen: + - interface: eth0@53 + - interface: eth0@853 + kind: dot + - interface: eth0@443 + kind: doh2