@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.546Z") @Stability(value=Stable) public interface DockerImageAssetOptions extends software.amazon.jsii.JsiiSerializable, 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.*;
import software.amazon.awscdk.services.ecr.assets.*;
NetworkMode networkMode;
Platform platform;
DockerImageAssetOptions dockerImageAssetOptions = DockerImageAssetOptions.builder()
.buildArgs(Map.of(
"buildArgsKey", "buildArgs"))
.exclude(List.of("exclude"))
.extraHash("extraHash")
.file("file")
.followSymlinks(SymlinkFollowMode.NEVER)
.ignoreMode(IgnoreMode.GLOB)
.invalidation(DockerImageAssetInvalidationOptions.builder()
.buildArgs(false)
.extraHash(false)
.file(false)
.networkMode(false)
.platform(false)
.repositoryName(false)
.target(false)
.build())
.networkMode(networkMode)
.platform(platform)
.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()
Build args to pass to the `docker build` command.
|
default String |
getFile()
Path to the Dockerfile (relative to the directory).
|
default DockerImageAssetInvalidationOptions |
getInvalidation()
Options to control which parameters are used to invalidate the asset hash.
|
default NetworkMode |
getNetworkMode()
Networking mode for the RUN commands during build.
|
default Platform |
getPlatform()
Platform to build for.
|
default String |
getTarget()
Docker target to build to.
|
getExtraHashgetExclude, getFollowSymlinks, getIgnoreMode@Stability(value=Stable) @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=Stable) @Nullable default String getFile()
Default: 'Dockerfile'
@Stability(value=Stable) @Nullable default DockerImageAssetInvalidationOptions getInvalidation()
Default: - hash all parameters
@Stability(value=Stable) @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=Stable) @Nullable default Platform getPlatform()
Requires Docker Buildx.
Default: - no platform specified (the current machine architecture will be used)
@Stability(value=Stable) @Nullable default String getTarget()
Default: - no target
@Stability(value=Stable) static DockerImageAssetOptions.Builder builder()
builder in interface FileCopyOptionsbuilder in interface FileFingerprintOptionsDockerImageAssetOptions.Builder of DockerImageAssetOptionsCopyright © 2022. All rights reserved.