Skip to content

Conversation

@cgwalters
Copy link
Collaborator

First change .dockerignore to be an allowlist.
This avoids spurious rebuilds when touching e.g. tmt/, and also crucially we don't leak .git/ into the sources which can easily change as one makes commits/branches.
This also requires touching the hack/ directory which is now fully self contained.

While we're here, make clear the roles of Justfile vs Makefile. Remove the make test.

First change `.dockerignore` to be an allowlist.
This avoids spurious rebuilds when touching e.g. `tmt/`, and
also crucially we don't leak `.git/` into the sources which
can easily change as one makes commits/branches.
This also requires touching the `hack/` directory which
is now fully self contained.

While we're here, make clear the roles of Justfile vs Makefile.
Remove the `make test`.

Signed-off-by: Colin Walters <[email protected]>
@bootc-bot bootc-bot bot requested a review from jeckersb September 19, 2025 20:03
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces several cleanups to the build system. The .dockerignore file is changed to an allowlist, which is a good practice to prevent accidentally including unwanted files. The roles of Justfile and Makefile are clarified with comments, and an unused make test target is removed. The hack/Containerfile is refactored to be more self-contained and to improve build caching by using multiple stages. My review includes a suggestion to improve the Docker layer caching strategy in hack/Containerfile to make it more effective.

@cgwalters cgwalters enabled auto-merge September 19, 2025 20:48
Copy link
Collaborator

@jeckersb jeckersb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@cgwalters cgwalters merged commit 1a99caf into bootc-dev:main Sep 19, 2025
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