@Stability(value=Stable) public static final class DockerImageSource.Builder extends Object implements software.amazon.jsii.Builder<DockerImageSource>
DockerImageSource| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
DockerImageSource |
build()
Builds the configured instance.
|
DockerImageSource.Builder |
directory(String directory)
Sets the value of
DockerImageSource.getDirectory() |
DockerImageSource.Builder |
dockerBuildArgs(Map<String,String> dockerBuildArgs)
Sets the value of
DockerImageSource.getDockerBuildArgs() |
DockerImageSource.Builder |
dockerBuildTarget(String dockerBuildTarget)
Sets the value of
DockerImageSource.getDockerBuildTarget() |
DockerImageSource.Builder |
dockerFile(String dockerFile)
Sets the value of
DockerImageSource.getDockerFile() |
DockerImageSource.Builder |
executable(List<String> executable)
Sets the value of
DockerImageSource.getExecutable() |
DockerImageSource.Builder |
networkMode(String networkMode)
Sets the value of
DockerImageSource.getNetworkMode() |
DockerImageSource.Builder |
platform(String platform)
Sets the value of
DockerImageSource.getPlatform() |
@Stability(value=Stable) public DockerImageSource.Builder directory(String directory)
DockerImageSource.getDirectory()directory - The directory containing the Docker image build instructions.
This path is relative to the asset manifest location.this@Stability(value=Stable) public DockerImageSource.Builder dockerBuildArgs(Map<String,String> dockerBuildArgs)
DockerImageSource.getDockerBuildArgs()dockerBuildArgs - Additional build arguments.
Only allowed when directory is set.this@Stability(value=Stable) public DockerImageSource.Builder dockerBuildTarget(String dockerBuildTarget)
DockerImageSource.getDockerBuildTarget()dockerBuildTarget - Target build stage in a Dockerfile with multiple build stages.
Only allowed when directory is set.this@Stability(value=Stable) public DockerImageSource.Builder dockerFile(String dockerFile)
DockerImageSource.getDockerFile()dockerFile - The name of the file with build instructions.
Only allowed when directory is set.this@Stability(value=Stable) public DockerImageSource.Builder executable(List<String> executable)
DockerImageSource.getExecutable()executable - A command-line executable that returns the name of a local Docker image on stdout after being run.this@Stability(value=Stable) public DockerImageSource.Builder networkMode(String networkMode)
DockerImageSource.getNetworkMode()networkMode - Networking mode for the RUN commands during build. _Requires Docker Engine API v1.25+_.
Specify this property to build images on a specific networking mode.this@Stability(value=Stable) public DockerImageSource.Builder platform(String platform)
DockerImageSource.getPlatform()platform - Platform to build for. _Requires Docker Buildx_.
Specify this property to build images on a specific platform/architecture.this@Stability(value=Stable) public DockerImageSource build()
build in interface software.amazon.jsii.Builder<DockerImageSource>DockerImageSourceNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.