pub struct SsrRuntimeSpec {
pub network: Option<String>,
pub network_alias: Option<String>,
pub image: String,
pub cmd: Option<Vec<String>>,
pub env: BTreeMap<String, String>,
pub host_port: u16,
pub container_port: u16,
pub volumes: Vec<(PathBuf, PathBuf)>,
pub container_name: String,
pub container_label: String,
pub ready_timeout: Duration,
pub ready_path: String,
}Expand description
Caller-supplied SSR-runtime bring-up parameters. Decoupled from
WorkloadSpec so yubaba’s HTTP body stays narrow — camp lowers the full
spec to this struct before POSTing.
Fields§
§network: Option<String>Per-cell docker bridge network to attach to (R455-F1). Sibling
containers (miniflare, MinIO) reach this container via
[network_alias] — typically http://ssr:3000 from inside the
Worker. None keeps the legacy host-port-only shape.
network_alias: Option<String>DNS alias on the bridge (e.g. "ssr"). Ignored when [network]
is None.
image: StringContainer image to pull (e.g. "oven/bun:1").
cmd: Option<Vec<String>>Override the image’s CMD (e.g. ["bun", "run", "src/ssr-entry.ts"]).
None leaves the image default.
env: BTreeMap<String, String>Env vars passed to the container.
host_port: u16Host port mapped to [container_port] inside the container. Miniflare’s
SSR_ORIGIN binding points at http://127.0.0.1:{host_port}.
container_port: u16Port the SSR process binds inside the container. Defaults to
DEFAULT_SSR_CONTAINER_PORT; override via the workload’s
expose.mesh.ports[0] at lowering time.
volumes: Vec<(PathBuf, PathBuf)>Volume mounts as (host_path, container_path) pairs.
container_name: StringContainer name (canonical yah-pond-<svc>-<env>-ssr form).
container_label: StringDocker --label value for filtering (yah.pond=<svc>:<env>:ssr).
ready_timeout: DurationTimeout for the initial port + HTTP-ready probes.
ready_path: StringHTTP path used for readiness probing. Set from the workload’s
healthcheck when it declares an HttpGet probe; otherwise
[default_ready_path].
Trait Implementations§
Source§impl Clone for SsrRuntimeSpec
impl Clone for SsrRuntimeSpec
Source§fn clone(&self) -> SsrRuntimeSpec
fn clone(&self) -> SsrRuntimeSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more