Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change: Reduce RHEL image size by calling "yum clean all" after installing packages. #67

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

cfi-gb
Copy link
Member

@cfi-gb cfi-gb commented Nov 13, 2024

What

yum clean all was only called before the installation of additional packages and only in the case if UPDATED=true was used.

Before this change:

$ docker image ls rhel:8.7
REPOSITORY   TAG       IMAGE ID       CREATED          SIZE
rhel         8.7       4cc316416a53   11 seconds ago   234MB

after this change:

$ docker image ls rhel:8.7
REPOSITORY   TAG       IMAGE ID       CREATED         SIZE
rhel         8.7       ade26e58d71d   7 seconds ago   225MB

Why

Reduce image size (not much but still worth a minor change like this)

References

None

Checklist

  • Tests

@cfi-gb cfi-gb requested review from a team as code owners November 13, 2024 12:22
@n-thumann n-thumann enabled auto-merge (squash) November 15, 2024 09:08
@n-thumann n-thumann merged commit c4f780f into main Nov 15, 2024
107 checks passed
@n-thumann n-thumann deleted the reduce_rhel_size branch November 15, 2024 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants