Struct docker_compose::v2::Build [] [src]

pub struct Build {
    pub context: RawOr<Context>,
    pub dockerfile: Option<RawOr<String>>,
    pub args: BTreeMap<StringString>,
    // some fields omitted
}

Information on how to build a Docker image.

Fields

The source directory to use for this build.

The name of an alternate Dockerfile to use.

Build arguments.

Methods

impl Build
[src]

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]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for Build
[src]

Formats the value using the given formatter.

impl Clone for Build
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl InterpolateAll for Build
[src]

Recursive merge all fields in the structure.

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.

Given this value and an override value, merge the override value into this one, producing a new value. Read more

impl FromStr for Build
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more