clusterflux-public/docs/environments.md
Clusterflux release 2927ca6912 Public release release-ce2d9c9dc397
Source commit: ce2d9c9dc3979543dd4e40b29e7fba2d55cc8633

Public tree identity: sha256:168e259dfbcbf75b34d46c1c641fd448e474550988c1d2eda802826bf103c0bc
2026-07-19 13:31:53 +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.