From 580c9df06a97ef13eef756353bc1035a0e3261d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eric=20M=C3=BCller?= <mueller@kip.uni-heidelberg.de> Date: Tue, 31 Aug 2021 13:30:06 +0200 Subject: [PATCH] Fix outdated repo caches Change-Id: I962c75d2a9db4e01c028d44774306d899d267827 --- .ci/asic_create_recipe.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.ci/asic_create_recipe.sh b/.ci/asic_create_recipe.sh index d159a2f5..a2fb4fe9 100755 --- a/.ci/asic_create_recipe.sh +++ b/.ci/asic_create_recipe.sh @@ -56,6 +56,12 @@ From: ${DOCKER_BASE_IMAGE} ${JENKINS_ENV_FILE} ${JENKINS_ENV_FILE_INSIDE} %post + # ECM: drop docker image caches (often outdated) + yum clean all + + # ECM: disable http caching + echo "http_caching=none" >> /etc/yum.conf + # Apparently, upon building the CentOS docker images it has been decided that # (for space-saving reasons) exactly one locale (en_US.utf8) is installed. # We don't care about the little extra space and user experience benefits from @@ -84,6 +90,9 @@ From: ${DOCKER_BASE_IMAGE} # ECM: and userspace mount stuff yum -y install fuse3 + # ECM: save some more space + yum clean all + # create a fingerprint by which we can identify the container from within cat /proc/sys/kernel/random/uuid > /opt/fingerprint -- GitLab