From d9f2416a39cecd08cac76077fbbfc19c64ea1a64 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adam=20Par=C3=A1k?= <xparak1@fi.muni.cz>
Date: Tue, 14 May 2024 21:49:51 +0200
Subject: [PATCH] Update .gitlab-ci.yml file

---
 .gitlab-ci.yml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index de74d0967..c6a70954d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -10,6 +10,14 @@ variables:
   CI_REGISTRY: gitlab.fi.muni.cz:5050/inject/container-registry/$CI_REGISTRY_IMAGE
   IMAGE_TAG: $CI_REGISTRY:$VER
   IMAGE_LATEST: $CI_REGISTRY:latest
+  # using "docker" as the host is only possible if you alias the service below
+  DOCKER_HOST: tcp://docker:2375 
+  # could be wrong here but although Docker defaults to overlay2, 
+  # Docker-in-Docker (DIND) does not according to the following GitLab doc: 
+  # https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#use-the-overlayfs-driver
+  DOCKER_DRIVER: overlay2
+  DOCKER_TLS_CERTDIR: ""
+
 
 default:
   tags:
@@ -47,6 +55,7 @@ create-image:
   services:
     - name: docker:20.10.16-dind
       alias: docker
+      command: ["--tls=false"]
   stage: buildimage
   only:
     refs:
-- 
GitLab