From d1702568960bee8524204794c68085529c4b8b08 Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Wed, 13 Feb 2019 09:58:17 -0500 Subject: Introduce clean_package_cache Default to true (to maintain backward compatibility), this parameter will allow to disable the Package cache cleaning when building the Kolla images. In TripleO, we are investigating how we can accelerate the builds by not cleaning the Yum cache and this patch will help us to do so. Also included same for deb package_install method. Co-Authored-By: Jon Schlueter Change-Id: I0adc85302dfe0411d362c899f3e0d6a0019680d4 --- kolla/common/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'kolla/common') diff --git a/kolla/common/config.py b/kolla/common/config.py index e364ae290..8a7943c05 100755 --- a/kolla/common/config.py +++ b/kolla/common/config.py @@ -283,7 +283,9 @@ _BASE_OPTS = [ cfg.BoolOpt('squash-cleanup', default=True, help='Remove source image from Docker after squashing'), cfg.StrOpt('squash-tmp-dir', - help='Temporary directory to be used during squashing') + help='Temporary directory to be used during squashing'), + cfg.BoolOpt('clean_package_cache', default=True, + help='Clean all package cache.') ] -- cgit v1.2.3