Skip to content

Conversation

@HastD
Copy link
Collaborator

@HastD HastD commented Jan 6, 2026

The --remove-base-image option removes the base image after building, but before build-chunked-oci runs, freeing additional disk space. This should be useful on runners with relatively little disk space, where the high space requirements of build-chunked-oci can be problematic.

@HastD HastD requested a review from gmpinder as a code owner January 6, 2026 16:53
@gmpinder
Copy link
Member

gmpinder commented Jan 6, 2026

Looks like builds will fail until this is merged

@HastD
Copy link
Collaborator Author

HastD commented Jan 9, 2026

Good, looks like CI is passing now.

@gmpinder
Copy link
Member

gmpinder commented Jan 9, 2026

Could you add this arg to the multi-platform tests so we can get a good idea of how it will operate?

gmpinder
gmpinder previously approved these changes Jan 9, 2026
@gmpinder gmpinder enabled auto-merge (squash) January 9, 2026 22:01
auto-merge was automatically disabled January 9, 2026 22:27

Head branch was pushed to by a user without write access

@HastD

This comment was marked as outdated.

@HastD HastD marked this pull request as draft January 10, 2026 00:56
@HastD HastD force-pushed the remove-base-image branch from bc1ea8b to d2b167c Compare January 10, 2026 01:11
HastD added 6 commits January 10, 2026 08:52
The `--remove-base-image` option removes the base image after building
(but, if used with `--build-chunked-oci`, before build-chunked-oci
runs), freeing additional disk space. This should be useful on runners
with relatively little disk space, where the high space requirements of
rechunking can be problematic.
This should give more useful debugging info in case something fails.
This allows `BuildahDriver` to implement `ImageStorageDriver`, which
gives an interface to remove images from local storage via buildah. This
allows us to ensure that image removal is done using the same container
storage as the build process uses.
It wouldn't actually save significant space in other configurations.
@HastD HastD force-pushed the remove-base-image branch from 92563b7 to 2e8fdc6 Compare January 10, 2026 13:55
@HastD HastD marked this pull request as ready for review January 10, 2026 14:32
@HastD HastD requested a review from gmpinder January 10, 2026 14:33
@HastD HastD requested a review from gmpinder January 11, 2026 02:31
@gmpinder gmpinder merged commit 791b0d3 into blue-build:main Jan 11, 2026
27 of 29 checks passed
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