Skip to content

buildkit builder #4489

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
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

buildkit builder #4489

wants to merge 1 commit into from

Conversation

wjordan
Copy link
Contributor

@wjordan wjordan commented Jul 17, 2025

Change Summary

This PR adds a 'buildkit' build strategy, selected when the --buildkit-addr flag (or BUILDKIT_ADDR env) is set.
If a direct connection fails, the strategy attempts to connect through the target app's private network using a Wireguard agent.

What and Why:

Supports building images using a standard buildkit daemon, which may run separately from the Docker daemon.

The main use-case is to build images on a stock moby/buildkit image, running in an app with a private IPv6 address connecting over Flycast. See wjordan/buildkit for a simple, fully-functional template in about 10 lines of config.

How:

Since the Depot build strategy mostly uses a Buildkit client already, a lot of the existing code was able to be reused along with some boilerplate to fit the existing build strategy interfaces.


Documentation

  • Fresh Produce
  • In superfly/docs, or asked for help from docs team
  • n/a

Uses an external buildkit daemon as a build strategy
when the `--buildkit-addr` flag (or `BUILDKIT_ADDR` env) is set.
If a direct connection fails, attempt to connect through
the target app's private network using a Wireguard agent.
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.

1 participant