Repository navigation
feat(builds): build images on another machine, off the production host - #428
Draft
PiquelChips wants to merge 1 commit into
Draft
PiquelChips wants to merge 1 commit into
PiquelChips wants to merge 1 commit into
Conversation
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This was referenced Nov 10, 2026
A `[build]` table names a build machine: its BuildKit daemon, reached through Buildx's remote driver, and the repository it pushes images to by digest. The host still checks repositories out, and pulls each image by its digest, like an image source. Closes #405.
PiquelChips
force-pushed
the
feat/builds-remote-builder
branch
from
November 13, 2026 13:53
f4aa1b1 to
9a0df1a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
piqueld builds images on the host that runs them, so on a small production host a build competes with the applications it is about to replace, and a larger machine nearby can't help (#403).
A
[build]table now names a build machine. The host still checks repositories out, then sends each build to that machine's BuildKit daemon, which pushes the image to a registry by digest. The host's Docker Engine pulls it from there, like an image source.build.builderandbuild.repository, set together or not at all, inconfig.toml, the NixOS module, the example configuration and the references. The dashboard's Host settings show them.remotedriver in<data_dir>/buildx, so nothing depends on the daemon user's Docker configuration. Registering only records the address: the build machine can be off.BuiltImage: a local image ID, or a repository digest. It is stored as the same string as before, so existing deployments and releases read back unchanged. A pushed image can be pulled again when the engine has lost it, so a restore no longer needs a rebuild for it.Differs from the issue
Every image goes to one configured repository by digest, instead of
<registry>/<application>/<service>. All images then share their layers within the registry, renames change nothing, and cleanup (#409) has one place to look.Settled first, as the issue asked
remotedriver over TCP to a rootless BuildKit daemon builds and pushes by digest. The connection is unauthenticated, so the docs require that only the host can reach the port. mTLS and SSH are not covered.git_build_failed, and its output ends withwaiting for connectionandcontext deadline exceeded. feat(builds): handle an unreachable builder #406 turns that into its own error.Notes for review
BuilderEndpoint,BuildRepository,RemoteBuild) are inpiqueld_core::build_machine, sopiqueld-configparses them andpiqueld-dockerbuilds with them without depending on each other.Testing
BuiltImage.--rebuildbuilt again, and a deployment with the builder stopped failed as described while the service kept running.Stacked on #425. Closes #405. Part of #403.
Note
Written by Claude Fable 5.2 in Claude Code (via T3 Code)
🤖 Generated with Claude Code