Skip to main content

Module containers

Module containers 

Source
Expand description

#3477 (slice C2): the Container settings of bynk.toml.

A Container capability (capability Renderer = Container @build("…")) has its image built from the Dockerfile @build names, by wrangler deploy, which needs Docker. A team that builds elsewhere, or deploys from a machine without Docker, names a prebuilt image here instead, per deployment environment:

[deploy.containers.Renderer]
image = { production = "registry.cloudflare.com/<ACCOUNT_ID>/renderer@sha256:<DIGEST>" }

The image has to be in Cloudflare’s own registry and named by digest, not by tag: Cloudflare takes no other registry for a container whose class runs under the durable_object scheduling policy. An environment with an adopted image is never built.

Structs§

ContainerDeploy
One capability’s [deploy.containers.<Capability>] entry.

Constants§

DEPLOY_ENTRY_KEYS
The keys of a [deploy.containers.<Capability>] entry.
REGISTRY
The registry a durable_object container’s image must be in.

Functions§

deploy_containers_from
The [deploy] table’s containers entries.
is_image_reference
Whether image is registry.cloudflare.com/<account>/<repository>@sha256:<64 hex digits>: the registry, a path of at least two segments of lowercase letters, digits and ._-, and a digest. It goes into a configuration file and a log line, so nothing else may reach them.
try_read_containers_deploy
try_read_containers_deploy_with, reading bynk.toml from disk.
try_read_containers_deploy_with
Read bynk.toml’s [deploy.containers] entries, honouring overlay. No manifest, or none of the table, is empty.

Type Aliases§

ContainerDeployConfig
The [deploy.containers] entries, by capability name.