Struct pulumi_wasm_docker::RemoteImageBuild

source ·
pub struct RemoteImageBuild {
Show 35 fields pub auth_configs: Box<Option<Vec<RemoteImageBuildAuthConfig>>>, pub build_arg: Box<Option<HashMap<String, String>>>, pub build_args: Box<Option<HashMap<String, String>>>, pub build_id: Box<Option<String>>, pub cache_froms: Box<Option<Vec<String>>>, pub cgroup_parent: Box<Option<String>>, pub context: Box<String>, pub cpu_period: Box<Option<i32>>, pub cpu_quota: Box<Option<i32>>, pub cpu_set_cpus: Box<Option<String>>, pub cpu_set_mems: Box<Option<String>>, pub cpu_shares: Box<Option<i32>>, pub dockerfile: Box<Option<String>>, pub extra_hosts: Box<Option<Vec<String>>>, pub force_remove: Box<Option<bool>>, pub isolation: Box<Option<String>>, pub label: Box<Option<HashMap<String, String>>>, pub labels: Box<Option<HashMap<String, String>>>, pub memory: Box<Option<i32>>, pub memory_swap: Box<Option<i32>>, pub network_mode: Box<Option<String>>, pub no_cache: Box<Option<bool>>, pub platform: Box<Option<String>>, pub pull_parent: Box<Option<bool>>, pub remote_context: Box<Option<String>>, pub remove: Box<Option<bool>>, pub security_opts: Box<Option<Vec<String>>>, pub session_id: Box<Option<String>>, pub shm_size: Box<Option<i32>>, pub squash: Box<Option<bool>>, pub suppress_output: Box<Option<bool>>, pub tags: Box<Option<Vec<String>>>, pub target: Box<Option<String>>, pub ulimits: Box<Option<Vec<RemoteImageBuildUlimit>>>, pub version: Box<Option<String>>,
}

Fields§

§auth_configs: Box<Option<Vec<RemoteImageBuildAuthConfig>>>

The configuration for the authentication

§build_arg: Box<Option<HashMap<String, String>>>

Set build-time variables

§build_args: Box<Option<HashMap<String, String>>>

Pairs for build-time variables in the form TODO

§build_id: Box<Option<String>>

BuildID is an optional identifier that can be passed together with the build request. The same identifier can be used to gracefully cancel the build with the cancel request.

§cache_froms: Box<Option<Vec<String>>>

Images to consider as cache sources

§cgroup_parent: Box<Option<String>>

Optional parent cgroup for the container

§context: Box<String>

Value to specify the build context. Currently, only a PATH context is supported. You can use the helper function ‘${path.cwd}/context-dir’. Please see https://docs.docker.com/build/building/context/ for more information about build contexts.

§cpu_period: Box<Option<i32>>

The length of a CPU period in microseconds

§cpu_quota: Box<Option<i32>>

Microseconds of CPU time that the container can get in a CPU period

§cpu_set_cpus: Box<Option<String>>

CPUs in which to allow execution (e.g., 0-3, 0, 1)

§cpu_set_mems: Box<Option<String>>

MEMs in which to allow execution (0-3, 0, 1)

§cpu_shares: Box<Option<i32>>

CPU shares (relative weight)

§dockerfile: Box<Option<String>>

Name of the Dockerfile. Defaults to Dockerfile.

§extra_hosts: Box<Option<Vec<String>>>

A list of hostnames/IP mappings to add to the container’s /etc/hosts file. Specified in the form [“hostname:IP”]

§force_remove: Box<Option<bool>>

Always remove intermediate containers

§isolation: Box<Option<String>>

Isolation represents the isolation technology of a container. The supported values are

§label: Box<Option<HashMap<String, String>>>

Set metadata for an image

§labels: Box<Option<HashMap<String, String>>>

User-defined key/value metadata

§memory: Box<Option<i32>>

Set memory limit for build

§memory_swap: Box<Option<i32>>

Total memory (memory + swap), -1 to enable unlimited swap

§network_mode: Box<Option<String>>

Set the networking mode for the RUN instructions during build

§no_cache: Box<Option<bool>>

Do not use the cache when building the image

§platform: Box<Option<String>>

Set platform if server is multi-platform capable

§pull_parent: Box<Option<bool>>

Attempt to pull the image even if an older image exists locally

§remote_context: Box<Option<String>>

A Git repository URI or HTTP/HTTPS context URI

§remove: Box<Option<bool>>

Remove intermediate containers after a successful build. Defaults to true.

§security_opts: Box<Option<Vec<String>>>

The security options

§session_id: Box<Option<String>>

Set an ID for the build session

§shm_size: Box<Option<i32>>

Size of /dev/shm in bytes. The size must be greater than 0

§squash: Box<Option<bool>>

If true the new layers are squashed into a new image with a single new layer

§suppress_output: Box<Option<bool>>

Suppress the build output and print image ID on success

§tags: Box<Option<Vec<String>>>

Name and optionally a tag in the ‘name:tag’ format

§target: Box<Option<String>>

Set the target build stage to build

§ulimits: Box<Option<Vec<RemoteImageBuildUlimit>>>

Configuration for ulimits

§version: Box<Option<String>>

Version of the underlying builder to use

Implementations§

source§

impl RemoteImageBuild

source

pub fn builder() -> RemoteImageBuildBuilder

Create an instance of RemoteImageBuild using the builder syntax

Trait Implementations§

source§

impl Debug for RemoteImageBuild

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for RemoteImageBuild

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for RemoteImageBuild

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,