From 47e794dfdc79c422e4ef73587858ea0159a3edf3 Mon Sep 17 00:00:00 2001 From: Eduardo Gonzalez Date: Tue, 19 Sep 2017 11:50:17 +0200 Subject: Remove yum cache Change-Id: I92c8626b8ee4d5d3dd102a9fe378c4f41a7f2154 --- docker/macros.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docker') diff --git a/docker/macros.j2 b/docker/macros.j2 index 203ca4be5..06a911b5e 100644 --- a/docker/macros.j2 +++ b/docker/macros.j2 @@ -1,7 +1,7 @@ {% macro install_packages(packages) -%} {% if packages is defined and packages|length > 0 -%} {% if base_distro in ['centos', 'oraclelinux', 'rhel'] -%} - RUN yum -y install {{ packages | join(' ') }} && yum clean all + RUN yum -y install {{ packages | join(' ') }} && yum clean all && rm -rf /var/cache/yum {%- elif base_distro in ['debian', 'ubuntu'] -%} {#- debian_package_install is a utility method to build up an appropriate -- cgit v1.2.3