Module tvix_build::oci::spec
source Β· Expand description
Module to create a OCI runtime spec for a given BuildRequest.
Functions§
- configure_linux πReturn the Linux part of the OCI Runtime spec. This configures various namespaces, masked and read-only paths.
- configure_mount πHelper function to produce a mount.
- configure_mounts πReturn the Mounts part of the OCI Runtime spec. It first sets up the standard mounts, then scratch paths, bind mounts for all inputs, and finally read-only paths from the hosts.
- configure_process πReturn the Process part of the OCI Runtime spec. This configures the command, itβs working dir, env and terminal setup. It also takes care of setting rlimits and capabilities. Capabilities are a bit more complicated in case rootless building is requested.
- make_spec πFor a given BuildRequest, return an OCI runtime spec.