aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin André <m.andre@redhat.com>2018-02-22 18:51:50 +0100
committerMartin André <m.andre@redhat.com>2018-03-21 20:26:38 +0100
commitd9cfacbc39e96f98440a00eb6bd82dc13d58bbf5 (patch)
treeb99191904f3a582e7c7a2b3d06aa7978c09b2f47
parentd37036a6e23d8b01284021af60201bc3781abf15 (diff)
downloadkolla-d9cfacbc39e96f98440a00eb6bd82dc13d58bbf5.tar.gz
kolla-d9cfacbc39e96f98440a00eb6bd82dc13d58bbf5.zip
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
-rw-r--r--docker/base/yum.conf1
-rw-r--r--releasenotes/notes/skip_rpm_doc_install-887dc22312c787a2.yaml4
2 files changed, 5 insertions, 0 deletions
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.