pub struct Run {
pub run: Vec<String>,
pub shell: Vec<String>,
pub cache: Vec<Cache>,
pub bind: Vec<Bind>,
pub tmpfs: Vec<TmpFs>,
pub secret: Vec<Secret>,
pub ssh: Vec<Ssh>,
pub network: Option<Network>,
pub security: Option<Security>,
}Expand description
Represents a run command
Fields§
§run: Vec<String>The commands to run
shell: Vec<String>The shell to use for the RUN command See https://docs.docker.com/reference/dockerfile/#shell
cache: Vec<Cache>The cache definitions during the run See https://docs.docker.com/reference/dockerfile/#run—mounttypecache
bind: Vec<Bind>The file system bindings during the run This is used to mount a file or directory from the host into the container only during the run and it’s faster than a copy See https://docs.docker.com/reference/dockerfile/#run—mounttypebind
tmpfs: Vec<TmpFs>This mount type allows mounting tmpfs in the build container.
secret: Vec<Secret>This allows the build container to access secret values, such as tokens or private keys, without baking them into the image. By default, the secret is mounted as a file. You can also mount the secret as an environment variable by setting the env option. See https://docs.docker.com/reference/dockerfile/#run—mounttypesecret
ssh: Vec<Ssh>This allows the build container to access SSH keys via SSH agents, with support for passphrases. See https://docs.docker.com/reference/dockerfile/#run—mounttypessh
network: Option<Network>This allows control over which networking environment the command is run in. See https://docs.docker.com/reference/dockerfile/#run—network
security: Option<Security>The default security mode is sandbox. With security: insecure, the builder runs the command without sandbox in insecure mode, which allows to run flows requiring elevated privileges (e.g. containerd).
See https://docs.docker.com/reference/dockerfile/#run—security
Implementations§
Trait Implementations§
Source§impl Patch<RunPatch> for Run
impl Patch<RunPatch> for Run
Source§fn into_patch(self) -> RunPatch
fn into_patch(self) -> RunPatch
SelfSource§fn into_patch_by_diff(self, previous_struct: Self) -> RunPatch
fn into_patch_by_diff(self, previous_struct: Self) -> RunPatch
previous_struct into Self