diff options
| author | Eduardo Gonzalez <dabarren@gmail.com> | 2017-09-19 11:50:17 +0200 |
|---|---|---|
| committer | Eduardo Gonzalez <dabarren@gmail.com> | 2017-09-19 11:50:17 +0200 |
| commit | 47e794dfdc79c422e4ef73587858ea0159a3edf3 (patch) | |
| tree | 2b096b8a73a22112156c0663abd793ad3e0de662 /docker/macros.j2 | |
| parent | bc52005ac0af69bce31512584775c991b1aa6326 (diff) | |
| download | kolla-47e794dfdc79c422e4ef73587858ea0159a3edf3.tar.gz kolla-47e794dfdc79c422e4ef73587858ea0159a3edf3.zip | |
Remove yum cache
Change-Id: I92c8626b8ee4d5d3dd102a9fe378c4f41a7f2154
Diffstat (limited to 'docker/macros.j2')
| -rw-r--r-- | docker/macros.j2 | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
