Directories
¶
| Path | Synopsis |
|---|---|
|
Package buildcontext holds a build context: the files a Containerfile's COPY and ADD read, received as a tar stream (from wctr, or from a stage or image through the engine) and kept in memory.
|
Package buildcontext holds a build context: the files a Containerfile's COPY and ADD read, received as a tar stream (from wctr, or from a stage or image through the engine) and kept in memory. |
|
Package builder builds an OCI image from a Containerfile by driving the engine: each step runs in a container made from the previous step's image, which is then committed — RUN executes a WebAssembly program there, COPY and ADD extract a computed layer into it, and metadata instructions (ENV, LABEL, CMD, …) commit an empty layer with the new configuration, so the image's history has one entry per instruction.
|
Package builder builds an OCI image from a Containerfile by driving the engine: each step runs in a container made from the previous step's image, which is then committed — RUN executes a WebAssembly program there, COPY and ADD extract a computed layer into it, and metadata instructions (ENV, LABEL, CMD, …) commit an empty layer with the new configuration, so the image's history has one entry per instruction. |
|
Package cli is the `build` command: `wctr build` (ForEngine, for wctr's extension hook), and the standalone `wctr-build`.
|
Package cli is the `build` command: `wctr build` (ForEngine, for wctr's extension hook), and the standalone `wctr-build`. |
|
cmd
|
|
|
wctr-build
command
Command wctr-build builds an image from a Containerfile with a wctrd engine: `wctr-build -H unix:///path -t name .`.
|
Command wctr-build builds an image from a Containerfile with a wctrd engine: `wctr-build -H unix:///path -t name .`. |
|
Package driver is the builder's view of the engine: the operations a build needs (inspect, pull, load, tag, create, archive in and out, run, commit), and Client, which performs them over the engine's API — the subset of the Docker Engine API that wctrd serves, plus the endpoints a builder needs from it (commit, tag, load, container archives).
|
Package driver is the builder's view of the engine: the operations a build needs (inspect, pull, load, tag, create, archive in and out, run, commit), and Client, which performs them over the engine's API — the subset of the Docker Engine API that wctrd serves, plus the endpoints a builder needs from it (commit, tag, load, container archives). |
|
Package expand substitutes variables in Containerfile words the way the Dockerfile reference's "Environment replacement" section specifies, with the grammar of BuildKit's frontend/dockerfile/shell lexer: single and double quotes, the escape token, $name and ${name}, and the modifiers ${name:-word} ${name-word} ${name:+word} ${name+word} ${name?word} ${name:?word} ${name#pattern} ${name##pattern} ${name%pattern} ${name%%pattern} ${name/pattern/repl} ${name//pattern/repl}.
|
Package expand substitutes variables in Containerfile words the way the Dockerfile reference's "Environment replacement" section specifies, with the grammar of BuildKit's frontend/dockerfile/shell lexer: single and double quotes, the escape token, $name and ${name}, and the modifiers ${name:-word} ${name-word} ${name:+word} ${name+word} ${name?word} ${name:?word} ${name#pattern} ${name##pattern} ${name%pattern} ${name%%pattern} ${name/pattern/repl} ${name//pattern/repl}. |
|
Package ignore reads .containerignore / .dockerignore files and matches build-context paths against them, with the semantics of containerignore(5) and moby/patternmatcher: Go filepath.Match syntax plus "**" (any number of directories, including none), "!" exceptions where the last matching line wins, patterns cleaned with path.Clean and a leading "/" dropped, and a path excluded when it or any of its parent directories matches.
|
Package ignore reads .containerignore / .dockerignore files and matches build-context paths against them, with the semantics of containerignore(5) and moby/patternmatcher: Go filepath.Match syntax plus "**" (any number of directories, including none), "!" exceptions where the last matching line wins, patterns cleaned with path.Clean and a leading "/" dropped, and a path excluded when it or any of its parent directories matches. |
|
internal
|
|
|
enginetest
Package enginetest is an in-process engine for the builder's tests: the real engine (daemon, API server, wazero executor) at the version in go.mod (New), and, for comparison, the same engine behind this package's prototype of the endpoints a builder needs (NewPrototype):
|
Package enginetest is an in-process engine for the builder's tests: the real engine (daemon, API server, wazero executor) at the version in go.mod (New), and, for comparison, the same engine behind this package's prototype of the endpoints a builder needs (NewPrototype): |
|
Package parser reads a Containerfile (a Dockerfile: same syntax) into a list of instructions, following the grammar of the Dockerfile reference and of BuildKit's frontend/dockerfile/parser: parser directives (syntax, escape, check) before anything else, comments, line continuation with the escape token, and per-instruction argument forms (JSON array or shell string, whitespace lists, key=value pairs, ONBUILD sub-instructions, HEALTHCHECK types).
|
Package parser reads a Containerfile (a Dockerfile: same syntax) into a list of instructions, following the grammar of the Dockerfile reference and of BuildKit's frontend/dockerfile/parser: parser directives (syntax, escape, check) before anything else, comments, line continuation with the escape token, and per-instruction argument forms (JSON array or shell string, whitespace lists, key=value pairs, ONBUILD sub-instructions, HEALTHCHECK types). |
Click to show internal directories.
Click to hide internal directories.