@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.857Z") @Stability(value=Stable) public interface DockerImageSource extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cloudassembly.schema.*;
DockerImageSource dockerImageSource = DockerImageSource.builder()
.directory("directory")
.dockerBuildArgs(Map.of(
"dockerBuildArgsKey", "dockerBuildArgs"))
.dockerBuildTarget("dockerBuildTarget")
.dockerFile("dockerFile")
.executable(List.of("executable"))
.networkMode("networkMode")
.platform("platform")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
DockerImageSource.Builder
A builder for
DockerImageSource |
static class |
DockerImageSource.Jsii$Proxy
An implementation for
DockerImageSource |
| Modifier and Type | Method and Description |
|---|---|
static DockerImageSource.Builder |
builder() |
default String |
getDirectory()
The directory containing the Docker image build instructions.
|
default Map<String,String> |
getDockerBuildArgs()
Additional build arguments.
|
default String |
getDockerBuildTarget()
Target build stage in a Dockerfile with multiple build stages.
|
default String |
getDockerFile()
The name of the file with build instructions.
|
default List<String> |
getExecutable()
A command-line executable that returns the name of a local Docker image on stdout after being run.
|
default String |
getNetworkMode()
Networking mode for the RUN commands during build.
|
default String |
getPlatform()
Platform to build for.
|
@Stability(value=Stable) @Nullable default String getDirectory()
This path is relative to the asset manifest location.
Default: - Exactly one of `directory` and `executable` is required
@Stability(value=Stable) @Nullable default Map<String,String> getDockerBuildArgs()
Only allowed when directory is set.
Default: - No additional build arguments
@Stability(value=Stable) @Nullable default String getDockerBuildTarget()
Only allowed when directory is set.
Default: - The last stage in the Dockerfile
@Stability(value=Stable) @Nullable default String getDockerFile()
Only allowed when directory is set.
Default: "Dockerfile"
@Stability(value=Stable) @Nullable default List<String> getExecutable()
Default: - Exactly one of `directory` and `executable` is required
@Stability(value=Stable) @Nullable default String getNetworkMode()
Specify this property to build images on a specific networking mode.
Default: - no networking mode specified
@Stability(value=Stable) @Nullable default String getPlatform()
Specify this property to build images on a specific platform/architecture.
Default: - current machine platform
@Stability(value=Stable) static DockerImageSource.Builder builder()
DockerImageSource.Builder of DockerImageSourceCopyright © 2022. All rights reserved.