From 9072a622334dbc7ab590b4cfa1a583cc93ffb42e Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 20 Sep 2021 16:49:17 +0200 Subject: [PATCH] Try fix for pulling gitlab docker dind image --- .gitlab-ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c5f427f..b3efa32 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,10 +7,22 @@ include: - template: Security/SAST.gitlab-ci.yml - template: Code-Quality.gitlab-ci.yml + +# See https://forum.gitlab.com/t/docker-dind-stops-working-after-12-1-0-update/28664/3 +services: + - name: docker:dind + entrypoint: ["env", "-u", "DOCKER_HOST"] + command: ["dockerd-entrypoint.sh"] + variables: SECURE_LOG_LEVEL: "debug" SAST_JAVA_VERSION: 11 + DOCKER_HOST: tcp://docker:2375/ + DOCKER_DRIVER: overlay2 + # See https://github.com/docker-library/docker/pull/166 + DOCKER_TLS_CERTDIR: "" + # This will suppress any download for dependencies and plugins or upload messages which would clutter the console log. # `showDateTime` will show the passed time in milliseconds. You need to specify `--batch-mode` to make this work. MAVEN_OPTS: " \