Skip to main content

Module oneshot

Module oneshot 

Source
Expand description

A one-shot, locked-down container: a command that runs once, with nothing but what it is given, and whose output comes back (a Drone Run step, docs/specs/SPEC_DRONE_GENERAL_AUTOMATION_2026_11_11.md §3.6).

It is not an agent’s container. It has no network, no host mounts, a read-only root, no capabilities, no privilege gain, a non-root user, and limits on memory, processes and CPU. The command is an argv run directly (the image’s entrypoint is replaced), never through a shell. The container is removed when the command ends, and when the caller gives up (a timeout, a stop).

Structs§

OneShot
What to run.
OneShotOutcome
What came of it.

Constants§

LABEL
The label every one-shot container carries, so a leftover can be found.
OUTPUT_CAP
The most of stdout, and of stderr, that is kept.

Functions§

oneshot_config
The container’s configuration. Pure, so the locks are testable without a runtime.