@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:29.091Z") @Stability(value=Experimental) public interface DockerImageAssetOptions extends software.amazon.jsii.JsiiSerializable, FingerprintOptions, FileFingerprintOptions
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.core.*;
import software.amazon.awscdk.assets.*;
import software.amazon.awscdk.services.ecr.assets.*;
NetworkMode networkMode;
DockerImageAssetOptions dockerImageAssetOptions = DockerImageAssetOptions.builder()
.buildArgs(Map.of(
"buildArgsKey", "buildArgs"))
.exclude(List.of("exclude"))
.extraHash("extraHash")
.file("file")
.follow(FollowMode.NEVER)
.followSymlinks(SymlinkFollowMode.NEVER)
.ignoreMode(IgnoreMode.GLOB)
.invalidation(DockerImageAssetInvalidationOptions.builder()
.buildArgs(false)
.extraHash(false)
.file(false)
.networkMode(false)
.repositoryName(false)
.target(false)
.build())
.networkMode(networkMode)
.repositoryName("repositoryName")
.target("target")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
DockerImageAssetOptions.Builder
A builder for
DockerImageAssetOptions |
static class |
DockerImageAssetOptions.Jsii$Proxy
An implementation for
DockerImageAssetOptions |
| Modifier and Type | Method and Description |
|---|---|
static DockerImageAssetOptions.Builder |
builder() |
default Map<String,String> |
getBuildArgs()
(experimental) Build args to pass to the `docker build` command.
|
default List<String> |
getExclude()
Deprecated.
|
default String |
getExtraHash()
Deprecated.
|
default String |
getFile()
(experimental) Path to the Dockerfile (relative to the directory).
|
default IgnoreMode |
getIgnoreMode()
Deprecated.
|
default DockerImageAssetInvalidationOptions |
getInvalidation()
(experimental) Options to control which parameters are used to invalidate the asset hash.
|
default NetworkMode |
getNetworkMode()
(experimental) Networking mode for the RUN commands during build.
|
default String |
getRepositoryName()
Deprecated.
to control the location of docker image assets, please override
`Stack.addDockerImageAsset`. this feature will be removed in future
releases.
|
default String |
getTarget()
(experimental) Docker target to build to.
|
getFollowgetFollowSymlinks@Stability(value=Experimental) @Nullable default Map<String,String> getBuildArgs()
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
@Stability(value=Experimental) @Nullable default String getFile()
Default: 'Dockerfile'
@Stability(value=Experimental) @Nullable default DockerImageAssetInvalidationOptions getInvalidation()
Default: - hash all parameters
@Stability(value=Experimental) @Nullable default NetworkMode getNetworkMode()
Support docker API 1.25+.
Default: - no networking mode specified (the default networking mode `NetworkMode.DEFAULT` will be used)
@Stability(value=Deprecated) @Deprecated @Nullable default String getRepositoryName()
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
@Stability(value=Experimental) @Nullable default String getTarget()
Default: - no target
@Stability(value=Deprecated) @Deprecated @Nullable default String getExtraHash()
Default: - hash is only based on source content
getExtraHash in interface FileFingerprintOptionsgetExtraHash in interface FingerprintOptions@Stability(value=Deprecated) @Deprecated @Nullable default List<String> getExclude()
Default: nothing is excluded
getExclude in interface CopyOptionsgetExclude in interface FileCopyOptions@Stability(value=Deprecated) @Deprecated @Nullable default IgnoreMode getIgnoreMode()
Default: - GLOB for file assets, DOCKER or GLOB for docker assets depending on whether the '
getIgnoreMode in interface CopyOptionsgetIgnoreMode in interface FileCopyOptions@Stability(value=Experimental) static DockerImageAssetOptions.Builder builder()
builder in interface CopyOptionsbuilder in interface FileCopyOptionsbuilder in interface FileFingerprintOptionsbuilder in interface FingerprintOptionsDockerImageAssetOptions.Builder of DockerImageAssetOptionsCopyright © 2022. All rights reserved.