What you see
A build that runs for over an hour, or a queue that waits more than five
minutes with nothing running, is flagged “may be stuck” and its Cancel button
becomes the primary action.
Concurrency
APP_BUILD_MAX_CONCURRENT (default 2, 0 for unlimited) is a limit per node:
two nodes with a limit of 2 run up to four builds at once. Builds past the limit
wait in the queue in arrival order. The effective value can also be changed in
Settings under build performance. APP_BUILD_TIMEOUT still stops a single build.
Cancel and retry
- Cancel drops a queued build or stops a running one before it can change the serving release. A build that already cut traffic cannot be canceled, roll back instead.
- Retry rebuilds the latest commit of the connected branch for a failed or canceled build. It needs a connected git source and is not offered for plain image or compose deploys.
Failure hints
A failed build is matched against the same deterministic rules the deploy diagnosis uses (out of disk, wrong CPU architecture, missing env and so on). The hint shows the cause and a suggestion. When the cause is a full disk, the row and the top of the page get a “Free build cache” button that opens the prune preview.Build cache
Per node, the page and CLI list BuildKit cache records with size, last use and whether a running build holds them. Pruning always previews first: it lists the idle records older than the chosen age (default 168 hours) and the bytes it would free. Records an in-flight build holds are never removed. Pruning needs a root token. Only the control plane’s own node reports its cache today, other nodes show “not available” until the agent exposes it.Build network
What a build’sRUN steps can reach. Claims here come from the code in
internal/build; anything that needs a real host is marked as not yet proven.
- Builds run on the BuildKit that is embedded in the node’s Docker Engine,
reached through the engine’s own API. Levelrail does not request the
network.hostentitlement, so the engine decides whetherRUN --network=hostis allowed. We expect it to be refused by default, but that rests on the engine’s behaviour, not on Levelrail code, and it is covered by the planned host probe (theoci1probe), which has not been run yet. - With the default policy (
open) Levelrail applies no restriction. ARUNstep gets the engine’s default build network, so it can reach whatever that network can route to, which may include the cloud metadata address, the Docker gateway and private LAN ranges. This has not been probed on a real host yet; treat those ranges as reachable until a probe says otherwise. - The managed buildkitd supervisor (
internal/build/buildkitd) starts its container with no network, but it is not used by the build path yet.
security.build_network. Change it in the
dashboard settings card, with levelrail-cli settings runtime set security.build_network none --confirm-weakening, or through the settings API.
Moving to a weaker value (none to open) asks for confirmation in the
dashboard and API and needs --confirm-weakening in the CLI. A saved value
wins, is read on every build and needs no restart; settings runtime get shows
the effective value and whether it is saved, from the environment or the
default. APP_BUILD_NETWORK only seeds the default when nothing is saved and is
case-insensitive.
How
none is applied:
- Dockerfile builds set the frontend attribute
force-network-mode=none. That attribute is only honoured by the stockdocker/dockerfilefrontend, so while the mode is notopena build is refused if its Dockerfile has a# syntax=line, or the build args containBUILDKIT_SYNTAX, that names any other frontend image. Adocker/dockerfilereference (with any tag or digest) is accepted. - Railpack builds rewrite every exec step of the generated plan to no network.
- A build sent to a build node carries the control plane’s mode. The node runs
the stricter of that mode and its own
APP_BUILD_NETWORK, and refuses a mode it does not recognise. A node whose agent predates this field does not advertise thebuild_networkcapability, so the control plane refuses to send it a build while the mode is notopen; upgrade the agent first. - If the saved setting cannot be read, or the saved or environment value is not
one of the allowed words, the build fails with an error naming where the bad
value came from. It never falls back to
open.
none, because BuildKit does it outside
RUN steps:
- Pulling base images named in
FROM. ADDof an HTTP URL or a git URL.COPY --from=<image>andRUN --mount=type=bind,from=<image>when the source is an image that has to be pulled.- Pulling the
docker/dockerfilefrontend image itself when the Dockerfile names one. - Registry cache import and export when a registry cache is configured.
RUN step with no interface under none is
the engine’s behaviour; the host probe that checks it has not been run yet. The
default stays open; whether to change it is an owner decision made after that
probe.
Platforms
Builds target the platform of the node that runs them, shown on every row. Multi-platform (buildx style) builds are not supported yet, so there is no platform selector.CLI
prune previews unless --apply is given. <id> is the deploy id shown by
builds list; follow a live build log with apps deploys logs <app> <id>.
API
MCP
list_builds, get_buildkit_cache and preview_build_cache_prune are read
tools. apply_build_cache_prune is only available in full mode.