Function tvix_build::oci::spec::configure_process

source ·
fn configure_process<'a>(
    command_args: &[String],
    cwd: &Path,
    env: impl IntoIterator<Item = (&'a str, String)>,
    rootless: bool,
) -> Result<Process, OciSpecError>
Expand description

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.