provision

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

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

func KataContextSHA256() (string, error)

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

func WriteKataContext(dir string) (string, error)

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>.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL