-
Notifications
You must be signed in to change notification settings - Fork 231
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
ci: Remove dangling docker layers #2017
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,7 +78,10 @@ jobs: | |
|
||
- name: Build docker image | ||
run: | | ||
docker build . --pull --file docker/Dockerfile.devito --tag devito_img --build-arg base=${{ matrix.base }} | ||
docker build . --rm --pull --file docker/Dockerfile.devito --tag devito_img --build-arg base=${{ matrix.base }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it's a build too -- it removes the dangling layers! |
||
|
||
- name: Remove dangling layers | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So why is it needed again? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ~300 GB of layers on v1003 and counting, which I purged manully for now if we pushed too much in a good week before docker-build kicks in (which does purge IIRC), we might end up saturating the hard drive though now that I think about it, that's weird, the base image shouldn't get rebuilt each time... mh There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If there is ~300 GB of layers then there is something else going on probably due to
So this may "fix" some of it but it should be safer to have the actual machine have a safety cron job with that |
||
run: docker system prune -f | ||
|
||
- name: Test with pytest | ||
run: | | ||
|
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.
I had the impression this was happening already, ok