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

Cleanup Dockerfile builds #952

Merged
merged 1 commit into from
Jun 22, 2020
Merged

Cleanup Dockerfile builds #952

merged 1 commit into from
Jun 22, 2020

Conversation

rhatdan
Copy link
Member

@rhatdan rhatdan commented Jun 16, 2020

Add -y options to yum clean all
Only delete below /var/cache/dnf so that I can use the
-v /var/cache/dnf:/var/cache/dnf:O option when building
to speed up builds.

Signed-off-by: Daniel J Walsh dwalsh@redhat.com

@rhatdan
Copy link
Member Author

rhatdan commented Jun 16, 2020

@TomSweeneyRedHat PTAL

Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@TomSweeneyRedHat
Copy link
Member

TomSweeneyRedHat commented Jun 16, 2020

@rhatdan when are you doing those builds that you're speeding up? Are you pulling the complete image and then building upon it?

@TomSweeneyRedHat
Copy link
Member

And looking at image size, it bumps the stable image from 252MB to 398MB, I'd like to keep it on the lower size, especially since both the Buildah and Podman images are smaller than 398MB.

@rhatdan
Copy link
Member Author

rhatdan commented Jun 16, 2020

Wow, lets look at other caches besides dnf.

@rhatdan
Copy link
Member Author

rhatdan commented Jun 17, 2020

@TomSweeneyRedHat Your size difference is compressed versus not compressed, definitely not caused by the change.

@TomSweeneyRedHat
Copy link
Member

thx @rhatdan this needs a rebase, once done we can merge this.

Add `-y` options to yum clean all
Only delete below /var/cache/dnf so that I can use the
-v /var/cache/dnf:/var/cache/dnf:O option when building
to speed up builds.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
@rhatdan rhatdan merged commit 7815c8a into containers:master Jun 22, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants