Skip to content

Conversation

@crazy-max
Copy link
Member

relates to #6210

Creates /etc/buildkit/provenance.d in buildkit container so then we can mount JSON payloads for provenance custom fields. This will be specially useful when creating a buildkit container using the buildx docker-container driver.

@crazy-max crazy-max added this to the v0.25.1 milestone Oct 4, 2025
@crazy-max crazy-max requested a review from tonistiigi October 4, 2025 12:58
@crazy-max crazy-max marked this pull request as ready for review October 4, 2025 13:00
Copy link
Member

@tonistiigi tonistiigi left a comment

Choose a reason for hiding this comment

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

We can't copy in buildx if there is no empty directory already in container?

@crazy-max
Copy link
Member Author

crazy-max commented Oct 5, 2025

We can't copy in buildx if there is no empty directory already in container?

Was thinking to use a driver-opt on buildx side for bind mounts like:

--driver-opt "mount./tmp/github_event.json=/etc/buildkit/provenance.d/github_event.json"

https://github.com/docker/buildx/compare/master...crazy-max:buildx:mount-driver-opt?expand=1

Edit: Ok actually not needed to have folder created within container first.

@crazy-max crazy-max closed this Oct 6, 2025
@crazy-max crazy-max deleted the dockerfile-provenance-d branch October 6, 2025 07:51
@crazy-max crazy-max removed this from the v0.25.1 milestone Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants