From 0c2305ad80869ded3b0a293610eb863171a392ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Andr=C3=A9?= Date: Mon, 14 May 2018 14:01:21 +0200 Subject: [PATCH] Run yum clean to reduce size of docker image layer This ensures we do not write the yum cache in the layer, making the image size smaller. Change-Id: I974bcac75be9231cf282a73db1a22a6f4ba079fc --- container-images/tripleo_kolla_template_overrides.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container-images/tripleo_kolla_template_overrides.j2 b/container-images/tripleo_kolla_template_overrides.j2 index 30f1fb9f2..a50ede09a 100644 --- a/container-images/tripleo_kolla_template_overrides.j2 +++ b/container-images/tripleo_kolla_template_overrides.j2 @@ -569,5 +569,5 @@ STOPSIGNAL SIGTERM # a yum update in the kolla base image. All the other images should inherit this # but if the base distro container is out of date (i.g. 7.4 but 7.5 is out) this # will pull in the updated packages available. Related issue LP#1770355 -RUN yum update -y +RUN yum update -y && yum clean all {% endblock %}