Skip to content

Add ability to specify default frontend for a buildkit instance #5870

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

Open
bentekkie opened this issue Mar 21, 2025 · 4 comments
Open

Add ability to specify default frontend for a buildkit instance #5870

bentekkie opened this issue Mar 21, 2025 · 4 comments

Comments

@bentekkie
Copy link

Description

It would be convenient if a buildkit instance could be configured to default to a specific frontend.

The usecase for us is that we have developed a frontend that injects certificates and TLS proxy related environment variables into ExecOps and it would be very helpful if we could configure the buildkit daemon to always use this custom frontend

@bentekkie
Copy link
Author

An addition to this is that docker build --build-arg=BUILDKIT_SYNTAX=... ... doesnt seem to work with the dockerfile.v0 frontend disabled

@tonistiigi
Copy link
Member

An addition to this is that docker build --build-arg=BUILDKIT_SYNTAX=... ... doesnt seem to work with the dockerfile.v0 frontend disabled

This could be added to buildx as a special case I think. buildctl build --frontend=gateway.v0 --opt source=image should work fine with Dockerfile disabled.

@bentekkie
Copy link
Author

An addition to this is that docker build --build-arg=BUILDKIT_SYNTAX=... ... doesnt seem to work with the dockerfile.v0 frontend disabled

This could be added to buildx as a special case I think. buildctl build --frontend=gateway.v0 --opt source=image should work fine with Dockerfile disabled.

Ah ok I will file a FR on the buildx repo for that then

@bentekkie
Copy link
Author

Added a FR for #5870 (comment) docker/buildx#3077

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants