pub struct DockerfileSource {
pub dockerfile: DockerfileInput,
pub context_dir: Option<PathBuf>,
pub build_args: HashMap<String, String>,
pub ignore: Vec<String>,
}Expand description
A Dockerfile to build into an image, plus its build context. See
ImageDefinition::dockerfile.
Fields§
§dockerfile: DockerfileInputThe Dockerfile itself.
context_dir: Option<PathBuf>Directory the Dockerfile’s COPY and ADD instructions read from;
None builds without a context.
build_args: HashMap<String, String>Values for the Dockerfile’s ARG instructions, like --build-arg.
Names may not start with the reserved BUILDKIT_ prefix, and Docker’s
proxy names (HTTP_PROXY, HTTPS_PROXY, FTP_PROXY, NO_PROXY,
ALL_PROXY, in any letter case) are rejected; a step that needs a
proxy can set one inside its RUN command.
ignore: Vec<String>.dockerignore-style patterns excluding files from the context,
applied after the context’s own ignore file (a
<Dockerfile-name>.dockerignore next to the Dockerfile when one
exists, otherwise the context directory’s .dockerignore) so they
take precedence on conflict.
Trait Implementations§
Source§impl Clone for DockerfileSource
impl Clone for DockerfileSource
Source§fn clone(&self) -> DockerfileSource
fn clone(&self) -> DockerfileSource
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for DockerfileSource
impl RefUnwindSafe for DockerfileSource
impl Send for DockerfileSource
impl Sync for DockerfileSource
impl Unpin for DockerfileSource
impl UnsafeUnpin for DockerfileSource
impl UnwindSafe for DockerfileSource
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request