Skip to content

Add disk space check during BuildImage for local images#121

Merged
idroz merged 1 commit intobravetools:masterfrom
Szubie:resource-checks
Aug 4, 2022
Merged

Add disk space check during BuildImage for local images#121
idroz merged 1 commit intobravetools:masterfrom
Szubie:resource-checks

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.

2 participants