forked from ManageIQ/manageiq-pods
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean more files after dnf installing
This change reduces the UI worker image size from 2.063GB to 2.018GB (44MB, 2.1%) - Add the removal of dnf logs, dnf history, and rpm __db lock files. This eliminates roughly 2-6MB per invocation. - Move the cleaning of dnf and rpm assets into a script, which makes it easier to use across layers and images. - Remove redundant rebuild of the rpm manifests, since ther are unnecessary unless rpm changes are made. - Collapse the modifications of the httpd package into the same layer as when it's installed. Part of ManageIQ#736
- Loading branch information
Showing
6 changed files
with
42 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
# Cleanup dnf | ||
dnf clean all | ||
rm -rf /var/cache/dnf | ||
rm -rf /var/lib/dnf/history* | ||
rm -rf /var/log/dnf*.log | ||
rm -rf /var/log/hawkey.log | ||
|
||
# Cleanup rpm | ||
rm -rf /var/lib/rpm/__db.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters