Documentation
¶
Overview ¶
Package provision holds the agent hosts' workspace bases: base.sh, the provisioning script the tart base VM runs (package host embeds it too), and the kata driver's image, whose build context is kata/ plus base.sh (design/workstreams/agent/LLD/workspace-kata.md, "The image").
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KataContextSHA256 ¶
KataContextSHA256 is the kata image's build context's sha256 (katabase.json's contextSHA256): the sha256 of `sha256sum`'s lines for its files, sorted by name, so any change to a file's name or content changes it. In a written context, `LC_ALL=C bash -c 'sha256sum * | sha256sum'` gives the same (the glob sorted bytewise).
func WriteKataContext ¶
WriteKataContext writes the kata image's build context into dir, flat (the directory is made when missing, and files of the same names are replaced): the Dockerfile, base.sh, factory-init, factory-docker-storage and its unit, the scripts 0755 and the rest 0644. It returns the context's sha256 (KataContextSHA256).
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Command katacontext writes the kata image's build context (provision.WriteKataContext) to a directory and prints its contextSHA256, so a person (make kata-context) and CI build the same context factory-agent does: docker build <dir>.
|
Command katacontext writes the kata image's build context (provision.WriteKataContext) to a directory and prints its contextSHA256, so a person (make kata-context) and CI build the same context factory-agent does: docker build <dir>. |