ceph.repo had creds in it for download.ceph.com/prerelease.
Remove the .repo files we construct, since they're not necessary
once the container is built (no one should be dnf'ing anything
in the container).
Signed-off-by: Dan Mick <dan.mick@redhat.com>
(cherry picked from commit
08432ef54212aa2aba724102854082e76f0cd847)
# remove unnecessary files with big impact
rm -rf /etc/selinux /usr/share/{doc,man,selinux} && \
# don't keep compiled python binaries
- find / -xdev \( -name "*.pyc" -o -name "*.pyo" \) -delete
+ find / -xdev \( -name "*.pyc" -o -name "*.pyo" \) -delete && \
+ rm -f /etc/yum.repos.d/{ceph,ganesha,tcmu-runner,ceph-iscsi}.repo
# Verify that the packages installed haven't been accidentally cleaned, then
# clean the package list and re-clean unnecessary RPM database files