clusterflux-public/docs/environments.md
Clusterflux release 9f90d6381c Public release release-3988921719e9
Source commit: 3988921719e96f61b19b517860c8da5c95ab8aa6

Public tree identity: sha256:7e139db2e2aa31a144db56600d0928f6cf21eb64717296300b9ad4246037c9ce
2026-07-19 12:16:58 +02:00

34 lines
935 B
Markdown

# Environments
Declare environments in the bundle under:
~~~text
envs/<name>/Containerfile
envs/<name>/Dockerfile
~~~
Reference one by logical name:
~~~rust
use clusterflux::env;
let linux = env!("linux");
~~~
Bundle inspection reports every discovered environment and its digest:
~~~bash
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.