From d9cfacbc39e96f98440a00eb6bd82dc13d58bbf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Andr=C3=A9?= Date: Thu, 22 Feb 2018 18:51:50 +0100 Subject: [PATCH] Skip the install of documentation files from rpm This reduces the overall size of the kolla images by 3 percents and improves the build and push time by 5 percents according to my measurements. Compare results with [1] and without [2] the patch applied. [1] http://paste.openstack.org/show/707910/ [2] http://paste.openstack.org/show/707907/ Change-Id: I4932b6760af5b5eef9ec79b54b4b2f06eb2a4784 --- docker/base/yum.conf | 1 + releasenotes/notes/skip_rpm_doc_install-887dc22312c787a2.yaml | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 releasenotes/notes/skip_rpm_doc_install-887dc22312c787a2.yaml diff --git a/docker/base/yum.conf b/docker/base/yum.conf index 6714771e86..cac98d8def 100644 --- a/docker/base/yum.conf +++ b/docker/base/yum.conf @@ -7,3 +7,4 @@ gpgcheck=1 plugins=1 installonly_limit=0 skip_missing_names_on_install=False +tsflags=nodocs diff --git a/releasenotes/notes/skip_rpm_doc_install-887dc22312c787a2.yaml b/releasenotes/notes/skip_rpm_doc_install-887dc22312c787a2.yaml new file mode 100644 index 0000000000..21548d4054 --- /dev/null +++ b/releasenotes/notes/skip_rpm_doc_install-887dc22312c787a2.yaml @@ -0,0 +1,4 @@ +--- +features: + - RPM based container images no longer include package documentation. This + results in smaller images and faster builds.