From e373761c2eff791309657c2ee8f1ddd1d59a669c Mon Sep 17 00:00:00 2001 From: Moritz Maxeiner <moritz@ucworks.org> Date: Fri, 14 Sep 2018 00:51:05 +0200 Subject: [PATCH] Disable cache for ubuntu cuda image building - nvidia-docker mounts the host's driver libraries into the container - when building an image on top of that, those libraries will get saved as empty into the next layer (they are usually overloaded by nvidia-docker runtime so it doesn't get noticed) - when the host's gpu driver is updated, however, the old driver files remain and the new ones are mounted into the container -> driver libraries from multiple versions hanging around potentially causing issues. Don't allow it. --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a956693..a47b5d1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,7 +7,7 @@ build-ubuntu-18.04: before_script: - echo "${CI_REGISTRY_PASSWORD}" | docker login -u "${CI_REGISTRY_USER}" "${CI_REGISTRY}" --password-stdin script: - - docker build --pull -t "${CI_REGISTRY}/${CI_PROJECT_PATH,,}:ubuntu-18.04" ubuntu-18.04 + - docker build --no-cache --pull -t "${CI_REGISTRY}/${CI_PROJECT_PATH,,}:ubuntu-18.04" ubuntu-18.04 - docker push "${CI_REGISTRY}/${CI_PROJECT_PATH,,}:ubuntu-18.04" after_script: - docker logout "${CI_REGISTRY}" -- GitLab