buildkit icon indicating copy to clipboard operation
buildkit copied to clipboard

Add ability to specify default frontend for a buildkit instance

Open bentekkie opened this issue 9 months ago • 4 comments

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 avatar Mar 21 '25 17:03 bentekkie

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

bentekkie avatar Mar 21 '25 18:03 bentekkie

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.

tonistiigi avatar Mar 21 '25 18:03 tonistiigi

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 avatar Mar 21 '25 18:03 bentekkie

Added a FR for https://github.com/moby/buildkit/issues/5870#issuecomment-2744090482 https://github.com/docker/buildx/issues/3077

bentekkie avatar Mar 24 '25 14:03 bentekkie