DockerBuild class
Arguments for building a docker image
Constructors
-
DockerBuild({Input<
Map< ? args, Input<String, String> ?>BuilderVersion?> ? builderVersion, Input<List< ? cacheFrom, Input<String> ?>String?> ? context, Input<String?> ? dockerfile, Input<String?> ? imageName, Input<String?> ? imageTag, Input<String?> ? platform, Input<String?> ? target}) -
Creates a new DockerBuild.
argsAn optional map of named build-time argument variables to set during the Docker build. This flag allows you to pass built-time variables that can be accessed like environment variables inside theRUNinstruction.builderVersionThe version of the Docker builder.cacheFromImages to consider as cache sourcescontextPath to a directory to use for the Docker build context, usually the directory in which the Dockerfile resides (although dockerfile may be used to choose a custom location independent of this choice). If not specified, the context defaults to the current working directory; if a relative path is used, it is relative to the current working directory that Pulumi is evaluating.dockerfiledockerfile may be used to override the default Dockerfile name and/or location. By default, it is assumed to be a file named Dockerfile in the root of the build context.imageNameCustom name for the underlying Docker image resource. If omitted, the image tag assigned by the provider will be usedimageTagCustom image tag for the resulting docker image. If omitted a random string will be usedplatformThe architecture of the platform you want to build this image for, e.g.linux/arm64.targetThe target of the dockerfile to buildconst -
DockerBuild.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
args
→ Input<
Map< ?String, String> ?> -
An optional map of named build-time argument variables to set during the Docker build. This flag allows you to pass built-time variables that can be accessed like environment variables inside the
RUNinstruction.final -
builderVersion
→ Input<
BuilderVersion?> ? -
The version of the Docker builder.
final
-
cacheFrom
→ Input<
List< ?String> ?> -
Images to consider as cache sources
final
-
context
→ Input<
String?> ? -
Path to a directory to use for the Docker build context, usually the directory in which the Dockerfile resides (although dockerfile may be used to choose a custom location independent of this choice). If not specified, the context defaults to the current working directory; if a relative path is used, it is relative to the current working directory that Pulumi is evaluating.
final
-
dockerfile
→ Input<
String?> ? -
dockerfile may be used to override the default Dockerfile name and/or location. By default, it is assumed to be a file named Dockerfile in the root of the build context.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
imageName
→ Input<
String?> ? -
Custom name for the underlying Docker image resource. If omitted, the image tag assigned by the provider will be used
final
-
imageTag
→ Input<
String?> ? -
Custom image tag for the resulting docker image. If omitted a random string will be used
final
-
platform
→ Input<
String?> ? -
The architecture of the platform you want to build this image for, e.g.
linux/arm64.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
target
→ Input<
String?> ? -
The target of the dockerfile to build
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited