-
Notifications
You must be signed in to change notification settings - Fork 169
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
Automate Local Image Pruning #3587
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The direction of the PR is really good. Let's align on image tags, and document/remove --force
.
Please rebase pull request. |
6f5bb98
to
14e0b5f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
/azp run ci |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a quick fix - we need to mark the new target as .PHONY
for makefile reasons, since we aren't compiling a C program with this target.
/azp run ci |
Azure Pipelines successfully started running 1 pipeline(s). |
Please rebase pull request. |
…moving --force flag in image pruning line
…parate PR and user story, thus rolling back the changes w.r.to to the builds to how they were written earlier
…the merge conflicts
acd60ed
to
546faa1
Compare
/azp run ci |
Azure Pipelines successfully started running 1 pipeline(s). |
Which issue this PR addresses:
Fixes https://issues.redhat.com/browse/ARO-7189
What this PR does / why we need it:
This PR helps us automatically prune local container images generated by
make ci
, so that we as developers do not run out of local disk space in our machines. Additionally it also does labeling for all the intermediate images in a multistage Docker file which could help us at the time of pruning.Test plan for issue:
Run
make ci-rp
to producearo-*
images and later runmake ci-clean
to verify and validate whether it is pruning those images to free up our local disk space.Is there any documentation that needs to be updated for this PR?
None that I'm aware of.