Struct docker_compose::v2::Build
[−]
[src]
pub struct Build { pub context: RawOr<Context>, pub dockerfile: Option<RawOr<String>>, pub args: BTreeMap<String, String>, // some fields omitted }
Information on how to build a Docker image.
Fields
context: RawOr<Context>
The source directory to use for this build.
dockerfile: Option<RawOr<String>>
The name of an alternate Dockerfile
to use.
args: BTreeMap<String, String>
Build arguments.
Methods
impl Build
[src]
fn new<C: Into<Context>>(ctx: C) -> Self
Create a new build from just Context
. To override other fields, you
can use struct notation.
use docker_compose::v2 as dc; dc::Build::new(dc::Context::new("app")); dc::Build { dockerfile: Some(dc::escape("Dockerfile-alt").unwrap()), ..dc::Build::new(dc::Context::new("app")) };Run
Trait Implementations
impl Eq for Build
[src]
impl PartialEq for Build
[src]
fn eq(&self, __arg_0: &Build) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Build) -> bool
This method tests for !=
.
impl Debug for Build
[src]
impl Clone for Build
[src]
fn clone(&self) -> Build
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl InterpolateAll for Build
[src]
Recursive merge all fields in the structure.
fn interpolate_all(&mut self) -> Result<(), InterpolationError>
Recursively walk over this type, interpolating all RawOr
values containing references to the environment. The default implementation leaves a value unchanged. Read more
impl MergeOverride for Build
[src]
Recursive merge all fields in the structure.
fn merge_override(&self, ovr: &Self) -> Self
Given this value and an override value, merge the override value into this one, producing a new value. Read more