clusterflux-public/docs/environments.md
Clusterflux release 94d1716637 Public release release-f8ee5fc25a1d
Source commit: f8ee5fc25a1d0fed1e59b3f34d534b395bf34dad

Public tree identity: sha256:a428db3c520f7c0779135e36a841a5102ed26070519b696a146dbfa54514bd52
2026-07-19 15:51:02 +02:00

935 B

Environments

Declare environments in the bundle under:

envs/<name>/Containerfile
envs/<name>/Dockerfile

Reference one by logical name:

use clusterflux::env;

let linux = env!("linux");

Bundle inspection reports every discovered environment and its digest:

clusterflux bundle inspect --project .

The bundle definition is authoritative for every spawn. The coordinator passes the declared environment identity and digest in the TaskSpec, and the node resolves that exact definition. A same-named local recipe with different bytes is rejected rather than substituted.

On Linux, container-backed environments use rootless Podman. Clusterflux does not enable privileged containers by default.

A task may use a bind-mounted local checkout for speed. That source path is non-hermetic. Choose a source snapshot when you need a reproducible input identity independent of the current working tree.