@Stability(value=Experimental) public static final class DockerImageAsset.Builder extends Object implements software.amazon.jsii.Builder<DockerImageAsset>
DockerImageAsset.| Modifier and Type | Method and Description |
|---|---|
DockerImageAsset |
build() |
DockerImageAsset.Builder |
buildArgs(Map<String,String> buildArgs)
(experimental) Build args to pass to the `docker build` command.
|
static DockerImageAsset.Builder |
create(software.constructs.Construct scope,
String id) |
DockerImageAsset.Builder |
directory(String directory)
(experimental) The directory where the Dockerfile is stored.
|
DockerImageAsset.Builder |
exclude(List<String> exclude)
Deprecated.
|
DockerImageAsset.Builder |
extraHash(String extraHash)
Deprecated.
|
DockerImageAsset.Builder |
file(String file)
(experimental) Path to the Dockerfile (relative to the directory).
|
DockerImageAsset.Builder |
follow(FollowMode follow)
Deprecated.
|
DockerImageAsset.Builder |
ignoreMode(IgnoreMode ignoreMode)
Deprecated.
|
DockerImageAsset.Builder |
repositoryName(String repositoryName)
Deprecated.
to control the location of docker image assets, please override
`Stack.addDockerImageAsset`. this feature will be removed in future
releases.
|
DockerImageAsset.Builder |
target(String target)
(experimental) Docker target to build to.
|
@Stability(value=Experimental) public static DockerImageAsset.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.DockerImageAsset.Builder.@Stability(value=Deprecated) @Deprecated public DockerImageAsset.Builder exclude(List<String> exclude)
Default: nothing is excluded
exclude - Glob patterns to exclude from the copy. This parameter is required.this@Stability(value=Deprecated) @Deprecated public DockerImageAsset.Builder follow(FollowMode follow)
Default: Never
follow - A strategy for how to handle symlinks. This parameter is required.this@Stability(value=Deprecated) @Deprecated public DockerImageAsset.Builder ignoreMode(IgnoreMode ignoreMode)
Default: - GLOB for file assets, DOCKER or GLOB for docker assets depending on whether the '
ignoreMode - The ignore behavior to use for exclude patterns. This parameter is required.this@Stability(value=Deprecated) @Deprecated public DockerImageAsset.Builder extraHash(String extraHash)
Default: - hash is only based on source content
extraHash - Extra information to encode into the fingerprint (e.g. build instructions and other inputs). This parameter is required.this@Stability(value=Experimental) public DockerImageAsset.Builder buildArgs(Map<String,String> buildArgs)
Since Docker build arguments are resolved before deployment, keys and
values cannot refer to unresolved tokens (such as lambda.functionArn or
queue.queueUrl).
Default: - no build args are passed
buildArgs - Build args to pass to the `docker build` command. This parameter is required.this@Stability(value=Experimental) public DockerImageAsset.Builder file(String file)
Default: 'Dockerfile'
file - Path to the Dockerfile (relative to the directory). This parameter is required.this@Stability(value=Deprecated) @Deprecated public DockerImageAsset.Builder repositoryName(String repositoryName)
Specify this property if you need to statically address the image, e.g. from a Kubernetes Pod. Note, this is only the repository name, without the registry and the tag parts.
Default: - the default ECR repository for CDK assets
repositoryName - ECR repository name. This parameter is required.this@Stability(value=Experimental) public DockerImageAsset.Builder target(String target)
Default: - no target
target - Docker target to build to. This parameter is required.this@Stability(value=Experimental) public DockerImageAsset.Builder directory(String directory)
directory - The directory where the Dockerfile is stored. This parameter is required.this@Stability(value=Experimental) public DockerImageAsset build()
build in interface software.amazon.jsii.Builder<DockerImageAsset>Copyright © 2021. All rights reserved.