pub struct Route {
pub kind: String,
pub command: Option<String>,
pub args: Vec<String>,
pub env: BTreeMap<String, String>,
pub runtime_root: Option<String>,
pub shares_ro: Vec<String>,
pub shares_rw: Vec<String>,
pub receipt_digest_env: Option<String>,
pub phases: Vec<String>,
}Expand description
Wrapper for CPU phases on a host that is not native to the target.
Fields§
§kind: Stringnone or command.
command: Option<String>Wrapper command placed before the launch line of CPU-role phases; required for kind command.
args: Vec<String>Argument templates placed after command. When present, a -- follows them and the phase command comes after it. Placeholders: {phase_dir}, {log_dir}, {work_dir}, {target}, {phase}, {runtime_root}, {shares_ro}, {shares_rw}. {phase_dir} is <log_dir>/<phase> and is created before the command starts; {work_dir} is the target’s filesystems.build_path; the share placeholders join the rendered lists with :.
env: BTreeMap<String, String>Environment exported to the routed command; values accept the same placeholders as args.
runtime_root: Option<String>Root of the route’s runtime; exported as EB_PIPELINE_ROUTE_RUNTIME_ROOT and available as {runtime_root}.
Paths shared read-only into the route; placeholders {phase_dir}, {log_dir}, {work_dir}, {target}, {phase} allowed, as in args. Exported joined with : as EB_PIPELINE_ROUTE_SHARES_RO.
Paths shared read-write into the route; same placeholders as shares_ro. Exported as EB_PIPELINE_ROUTE_SHARES_RW.
receipt_digest_env: Option<String>Name of an environment variable that holds a receipt digest. run refuses with exit 78 when it is unset or empty and passes the value to the routed command as EB_PIPELINE_ROUTE_RECEIPT_DIGEST; plan shows ${NAME}.
phases: Vec<String>Phases whose CPU-role commands go through the route: build, sources.