Documentation
¶
Overview ¶
Package dockerbuild is how AppTown builds an image on a Docker daemon: with that daemon's own builder named explicitly, the extra certificates as the build's secret and the label that says AppTown made the image. Every build on a daemon goes through it (deployments, previews, check images, the agent image, on AppTown's machine and on a worker), so the source and its build go to the daemon chosen and nowhere else.
Naming the builder is the one rule: plain `docker build` otherwise honours an ambient selection, a builder alias (`docker buildx install`) with a saved remote builder, or BUILDX_BUILDER. The builder is the daemon's own: "default" for a daemon chosen by --host, otherwise the one named after the Docker context in use. It must use the docker driver (the daemon's own BuildKit), or the build is refused before anything is sent. Buildx is required beside the docker CLI: without it the build is refused, saying so, rather than falling back to the daemon's legacy builder.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Daemon ¶
type Daemon struct {
Run Run
// HostChosen says the daemon was chosen with --host (another
// machine's): its builder is "default", not the context's.
HostChosen bool
// Local says the daemon is on this machine, so the extra certificates
// are this machine's (trust.BuildArgs).
Local bool
}
Daemon is the daemon a build goes to, as the builder rule needs it.