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

main: double container size as the min size of "/" (HMS-3810) #291

Merged
merged 4 commits into from
Mar 21, 2024

Conversation

mvo5
Copy link
Collaborator

@mvo5 mvo5 commented Mar 19, 2024

As a starting point for the image size we use the container size and just double it.

@mvo5 mvo5 force-pushed the double-container-size branch 5 times, most recently from 5e60195 to 89219b6 Compare March 20, 2024 11:06
@mvo5 mvo5 marked this pull request as ready for review March 20, 2024 11:08
cgwalters
cgwalters previously approved these changes Mar 20, 2024
bib/cmd/bootc-image-builder/main.go Show resolved Hide resolved
bib/cmd/bootc-image-builder/main.go Outdated Show resolved Hide resolved
cgwalters
cgwalters previously approved these changes Mar 20, 2024
@mvo5 mvo5 force-pushed the double-container-size branch from 5f862f0 to 55bdd4d Compare March 20, 2024 16:17
@mvo5 mvo5 force-pushed the double-container-size branch 2 times, most recently from db1fe47 to ce79609 Compare March 20, 2024 16:20
@mvo5 mvo5 requested review from ondrejbudai and achilleas-k March 20, 2024 16:21
@mvo5
Copy link
Collaborator Author

mvo5 commented Mar 20, 2024

Sorry for the force pushes, I cleaned the commits up a bit and I think this is fnally ready and tests are also happy.

mvo5 added 4 commits March 20, 2024 18:29
As a starting point for the image size we use the container size
and just double it.
Ensure that the disk size of a container is taken into account
when the image is generated. The current heuristic is that we
just double the container size.

The test will not build an image just generate a manifest and
check that the image file is generated with the expected size.
@mvo5 mvo5 force-pushed the double-container-size branch from ce79609 to 2a1d06e Compare March 20, 2024 17:30
@mvo5 mvo5 changed the title main: double container size as the min size of "/" main: double container size as the min size of "/" (HMS-3810) Mar 21, 2024
@achilleas-k achilleas-k added this pull request to the merge queue Mar 21, 2024
Merged via the queue into osbuild:main with commit 16323da Mar 21, 2024
6 of 9 checks passed
@mvo5 mvo5 deleted the double-container-size branch March 21, 2024 11:49
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.

3 participants