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.