diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-08-09 02:37:05 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-08-09 02:37:05 +0000 |
| commit | 3082b2da69432e809721519f6b4cb6d8f56890c0 (patch) | |
| tree | b5d138b449da81b732f3169412da84c6c3600da4 /docker | |
| parent | 661c6a059ff40fe986bfd4488345dfcf0d8187cc (diff) | |
| parent | 4e8bf3f90da2b1b36575528a30926a575bfc4095 (diff) | |
| download | kolla-3082b2da69432e809721519f6b4cb6d8f56890c0.tar.gz kolla-3082b2da69432e809721519f6b4cb6d8f56890c0.zip | |
Merge "Remove files from /var/lib/apt/lists when cleaning up on Ubuntu/Debian"
Diffstat (limited to 'docker')
| -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 c10973ef6..0774a187d 100644 --- a/docker/macros.j2 +++ b/docker/macros.j2 @@ -2,6 +2,6 @@ {% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] -%} yum -y install {{ packages | join(' ') }} && yum clean all {%- elif base_distro in ['ubuntu', 'debian'] -%} - apt-get -y install --no-install-recommends {{ packages | join(' ') }} && apt-get clean + apt-get -y install --no-install-recommends {{ packages | join(' ') }} && apt-get clean && rm -rf /var/lib/apt/lists/* {%- endif %} {%- endmacro %} |
