]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
container: avoid installing docs using the dnf configuration
authorJohn Mulligan <jmulligan@redhat.com>
Sat, 8 Feb 2025 19:51:23 +0000 (14:51 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Mon, 17 Mar 2025 17:43:10 +0000 (13:43 -0400)
commitcb6397ea8bc85ceb8f4d04c378263ca4bfa6b551
treebe8def804b4f98e6d7fb5a0f92adfef7af3a829e
parentaed575032539aad457efe09f159417014aca4e9b
container: avoid installing docs using the dnf configuration

Avoid installing docs by using the dnf configuration tsflags parameter,
passing the nodocs flag. This tells dnf and rpm not to install
documentation, such as manpages. Stop installing the docs just to delete
them later with an `rm -rf` type command.  Now the docs don't get
installed in the first place, saving space, but the rpm is happy
(`rpm -Va` no longer shows docs as 'missing').

Fixes: https://tracker.ceph.com/issues/69868
Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit bf9b8d36aba3c7a8c7a3ecfc4d00359985e745b6)
container/Containerfile