Skip to main content

Module render

Module render 

Source
Expand description

Pure Dockerfile assembly for outrig image add.

render(base, toolchains, mcps) stitches a header (per base-family) plus per-(toolchain, family) fragments plus an MCP-server install block plus a universal footer into a single string. No I/O. The fragments are include_str!’d from templates/; the MCP install lines are inline string literals because they’re short and need to be family-aware.

Enums§

BaseImage
One of the curated base images offered by image add. Each carries the family discriminant and the full image string used in FROM docker.io/library/<image>.
Family
Apt vs apk: drives every install line below.
McpServer
Curated MCP server package recipes rendered by image add. Config can still declare any MCP command, including shell servers; this enum only covers recipes OutRig can install without more user input.
Toolchain
One of the curated language toolchains offered by the toolchain multi-select. Canonical render order: Rust, Node, Python, Go.

Functions§

render
Stitch the header, toolchain fragments, MCP block, and footer into a final Dockerfile string.