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