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§
- Container
Deploy - One capability’s
[deploy.containers.<Capability>]entry.
Constants§
- DEPLOY_
ENTRY_ KEYS - The keys of a
[deploy.containers.<Capability>]entry. - REGISTRY
- The registry a
durable_objectcontainer’s image must be in.
Functions§
- deploy_
containers_ from - The
[deploy]table’scontainersentries. - is_
image_ reference - Whether
imageisregistry.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, readingbynk.tomlfrom disk.- try_
read_ containers_ deploy_ with - Read
bynk.toml’s[deploy.containers]entries, honouringoverlay. No manifest, or none of the table, is empty.
Type Aliases§
- Container
Deploy Config - The
[deploy.containers]entries, by capability name.