pub struct RunnerSpec {
pub name: String,
pub image: String,
pub profile: String,
pub slice: String,
pub cpus: u32,
pub memory: ByteSize,
pub env: Vec<String>,
pub mounts: Vec<Mount>,
pub network: Option<String>,
pub labels: BTreeMap<String, String>,
pub entrypoint: Option<Vec<String>>,
pub jit_config: Option<JitConfig>,
}Expand description
One runner container: a profile’s image stage with the profile’s limits.
Fields§
§name: StringThe container’s name; for a runner, also the runner’s.
image: StringThe image, such as runnerd-runner:base.
profile: StringThe profile, put on the runnerd.profile label.
slice: StringThe systemd slice the container is placed in.
cpus: u32CPUs the container may use.
memory: ByteSizeMemory the container may use, swap included.
env: Vec<String>NAME=value environment variables.
mounts: Vec<Mount>Volumes to mount.
network: Option<String>The network the container joins; None is Docker’s default bridge.
labels: BTreeMap<String, String>Labels on top of runnerd.profile and runnerd.isolation.
entrypoint: Option<Vec<String>>Replaces the image’s entrypoint; None runs the runner.
jit_config: Option<JitConfig>The runner’s just-in-time config, which the entrypoint reads from JIT_CONFIG_PATH.
Trait Implementations§
Source§impl Clone for RunnerSpec
impl Clone for RunnerSpec
Auto Trait Implementations§
impl Freeze for RunnerSpec
impl RefUnwindSafe for RunnerSpec
impl Send for RunnerSpec
impl Sync for RunnerSpec
impl Unpin for RunnerSpec
impl UnsafeUnpin for RunnerSpec
impl UnwindSafe for RunnerSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more