RunServiceDef
A service (a long-lived pod) in a runnable.
interface in bldr
A service (a long-lived pod) in a runnable.
Properties
command: string[]
property
Command argv; omit to use the image's own entrypoint/cmd.
dependsOn: string[]
property
Services that must start before this one.
env: Record<string, string>
property
hostname: string
property
image: ContainerImage | CidSource
property
The container image to run (a build artifact).
See CidSource, ContainerImage.
internetAccess: boolean
property
Internet egress even without a bridge network.
mounts: RunMountDef[]
property
See RunMountDef.
network: string
property
Name of a declared network to join; omit for the host network.
ports: RunPort[]
property
See RunPort.
runtime: string
property
Container runtime to run this service on (a runtimes entry in the node
config — native runc or a cloud-hypervisor VM). Omit for the node
default.
workdir: string
property
Working directory for the command; omit to use the image's own
WORKDIR. Set here rather than on the image when the directory belongs
to this service — a dev server's mount point, say — instead of to the
image every service shares.