From d9cfacbc39e96f98440a00eb6bd82dc13d58bbf5 Mon Sep 17 00:00:00 2001 From: Martin André Date: Thu, 22 Feb 2018 18:51:50 +0100 Subject: 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 6714771e8..cac98d8de 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 000000000..21548d405 --- /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. -- cgit v1.2.3