aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Bourke <paul.bourke@oracle.com>2016-03-10 10:24:19 +0000
committerPaul Bourke <paul.bourke@oracle.com>2016-03-10 10:24:19 +0000
commit4dd60575f267654fbf0c3c2670bc31173e66ab4b (patch)
tree3b9d3839ea94a0d3de2ed6af2f5401a02264ce3c
parent3105580d39205bee6e17a2283161d18c6e7a892e (diff)
downloadkolla-4dd60575f267654fbf0c3c2670bc31173e66ab4b.tar.gz
kolla-4dd60575f267654fbf0c3c2670bc31173e66ab4b.zip
Add missing 'yum clean all' in oraclelinux base
This one line halfs the size of oraclelinux images, from over 1GB to just over 500MB, bringing them inline with centos. TrivialFix Change-Id: I9fd89aeeec56207791fc289db9880b43b17536f5
-rw-r--r--docker/base/Dockerfile.j23
1 files changed, 2 insertions, 1 deletions
diff --git a/docker/base/Dockerfile.j2 b/docker/base/Dockerfile.j2
index 2b394b400..b3e604282 100644
--- a/docker/base/Dockerfile.j2
+++ b/docker/base/Dockerfile.j2
@@ -83,7 +83,8 @@ RUN yum install -y \
&& rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 \
&& yum clean all
RUN yum-config-manager --enable ol7_optional_latest ol7_addons
-RUN yum install -y yum-plugin-priorities
+RUN yum install -y yum-plugin-priorities \
+ && yum clean all
{% endif %}
{# Endif for base_distro oraclelinux #}