Merge "Strip some excess from the centos dib image"

This commit is contained in:
Zuul 2020-07-27 11:00:32 +00:00 committed by Gerrit Code Review
commit 597955d366
2 changed files with 2 additions and 0 deletions

View File

@ -38,6 +38,7 @@ sudo find . -xdev \
-path './usr/lib/locale/*' -prune -o \
-path './usr/share/doc/*' -prune -o \
-path './usr/share/man/*' -prune -o \
-path './usr/share/GeoIP/*' -prune -o \
-path './usr/share/info/*' -prune -o \
-path './usr/share/licenses/*' -prune -o \
-path './usr/share/locale/*' -prune -o \

View File

@ -11,6 +11,7 @@ rm -rf /tmp/ironic-python-agent
# TODO(dtantsur): implement the same for debian-based systems
case "$DISTRO_NAME" in
fedora|centos|centos7|rhel|rhel7)
${YUM:-yum} remove -y postfix gcc make
${YUM:-yum} clean all
# Rebuilding the rpm database after removing packages will reduce
# its size