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

Add disk space check during BuildImage for local images #121

Merged
merged 1 commit into from Aug 4, 2022

Conversation

Szubie
Copy link
Collaborator

@Szubie Szubie commented Aug 3, 2022

This extends the disk space checks to local images as well as public LXD images.

Still need to consider the amount of buffer space we should leave to be safe - have left the freeSpace*5 for now but hoping to find a smarter way to estimate usage. ZFS compression can be unpredictable however.

A possible extension would be to estimating size of packages that need to be installed when doing build, though this is a bit tricky to do, especially if we want to account for the size of all dependecies pulled in by our packages.

@idroz idroz merged commit 45021ea into bravetools:master Aug 4, 2022
@Szubie Szubie deleted the resource-checks branch August 4, 2022 23:10
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.

None yet

2 participants