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 (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
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
impl RemoteImageBuild
sourcepub fn builder() -> RemoteImageBuildBuilder
pub fn builder() -> RemoteImageBuildBuilder
Create an instance of RemoteImageBuild
using the builder syntax