pub struct ContainerBuildOpts<'a> {
pub build_args: Option<Vec<BuildArg>>,
pub dockerfile: Option<&'a str>,
pub no_init: Option<bool>,
pub secrets: Option<Vec<SecretId>>,
pub target: Option<&'a str>,
}
Fields§
§build_args: Option<Vec<BuildArg>>
Additional build arguments.
dockerfile: Option<&'a str>
Path to the Dockerfile to use.
no_init: Option<bool>
If set, skip the automatic init process injected into containers created by RUN statements. This should only be used if the user requires that their exec processes be the pid 1 process in the container. Otherwise it may result in unexpected behavior.
secrets: Option<Vec<SecretId>>
Secrets to pass to the build. They will be mounted at /run/secrets/[secret-name] in the build container They can be accessed in the Dockerfile using the “secret” mount type and mount path /run/secrets/[secret-name], e.g. RUN –mount=type=secret,id=my-secret curl [http://example.com?token=$(cat /run/secrets/my-secret)](http://example.com?token=$(cat /run/secrets/my-secret))
target: Option<&'a str>
Target build stage to build.
Trait Implementations§
Source§impl<'a> Debug for ContainerBuildOpts<'a>
impl<'a> Debug for ContainerBuildOpts<'a>
Source§impl<'a> PartialEq for ContainerBuildOpts<'a>
impl<'a> PartialEq for ContainerBuildOpts<'a>
impl<'a> StructuralPartialEq for ContainerBuildOpts<'a>
Auto Trait Implementations§
impl<'a> Freeze for ContainerBuildOpts<'a>
impl<'a> RefUnwindSafe for ContainerBuildOpts<'a>
impl<'a> Send for ContainerBuildOpts<'a>
impl<'a> Sync for ContainerBuildOpts<'a>
impl<'a> Unpin for ContainerBuildOpts<'a>
impl<'a> UnwindSafe for ContainerBuildOpts<'a>
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