Skip to main content

Module docker

Module docker 

Source

Structs§

DockerContext
Inputs the Dockerfile renderer needs. All fields come from the project (rust-toolchain.toml, Cargo.toml, on-disk dirs, deploy metadata) and are fully resolved by the caller — render_dockerfile itself does no I/O.

Functions§

docker_compose_template
dockerignore_template
Static .dockerignore body. Phase 122.2 Plan 06 owns the canonical content.
read_rust_channel
Read [toolchain] channel from <root>/rust-toolchain.toml. Defaults to "stable" when the file is missing or unparseable.
render_dockerfile
Render a Dockerfile from the supplied context. Pure string substitution.
resolve_ferro_version
Phase 156 §6 (D-16/D-21): resolve the ferro-cli version to pin in the types-gen Docker stage. Parses the project’s Cargo.lock for the ferro-rs package; falls back to the current binary’s own version (env!("CARGO_PKG_VERSION")) when the lockfile is absent or has no ferro-rs entry. Never returns an empty string.