Skip to content

Conversation

@cgwalters
Copy link
Collaborator

Why? It just shows that we have put some thought into our build system and care about reproducibility, hermetic builds etc. And yes of course, --network=bridge should probably have been required as an opt-in in Dockerfile, but oh well. It's not too bad to sprinkle --network=none in some places. The biggest one is wrapping make.

Why? It just shows that we have put some thought into our
build system and care about reproducibility, hermetic builds etc.
And yes of course, `--network=bridge` should probably have been
required as an opt-in in Dockerfile, but oh well. It's not too
bad to sprinkle `--network=none` in some places. The biggest one
is wrapping `make`.

Signed-off-by: Colin Walters <[email protected]>
@bootc-bot bootc-bot bot requested a review from gursewak1997 October 31, 2025 21:41
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 makes a valuable improvement towards hermetic and reproducible builds by disabling network access for most build steps. The separation of cargo fetch is a good pattern.

I've added a few comments:

  • A suggestion to further improve Docker layer caching for dependencies, which would speed up builds.
  • Two findings of what appears to be an existing bug with incorrect cache mount paths in the units and validate stages. Fixing this will make the build cache effective for those stages.

Overall, this is a solid change.

Well spotted Gemini Code Review!

Signed-off-by: Colin Walters <[email protected]>
@gursewak1997 gursewak1997 merged commit 042aa21 into bootc-dev:main Nov 1, 2025
37 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