Interface DockerImageSource
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
DockerImageSource.Jsii$Proxy
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)", date="2025-11-06T20:25:05.781Z") @Stability(Stable) public interface DockerImageSource extends software.amazon.jsii.JsiiSerializable
Properties for how to produce a Docker image from a source.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDockerImageSource.BuilderA builder forDockerImageSourcestatic classDockerImageSource.Jsii$ProxyAn implementation forDockerImageSource
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static DockerImageSource.Builderbuilder()default BooleangetCacheDisabled()Disable the cache and pass--no-cacheto thedocker buildcommand.default List<DockerCacheOption>getCacheFrom()Cache from options to pass to thedocker buildcommand.default DockerCacheOptiongetCacheTo()Cache to options to pass to thedocker buildcommand.default StringgetDirectory()The directory containing the Docker image build instructions.default Map<String,String>getDockerBuildArgs()Additional build arguments.default Map<String,String>getDockerBuildSecrets()Additional build secrets.default StringgetDockerBuildSsh()SSH agent socket or keys.default StringgetDockerBuildTarget()Target build stage in a Dockerfile with multiple build stages.default StringgetDockerFile()The name of the file with build instructions.default List<String>getDockerOutputs()Outputs.default List<String>getExecutable()A command-line executable that returns the name of a local Docker image on stdout after being run.default StringgetNetworkMode()Networking mode for the RUN commands during build.default StringgetPlatform()Platform to build for.
-
-
-
Method Detail
-
getCacheDisabled
@Stability(Stable) @Nullable default Boolean getCacheDisabled()
Disable the cache and pass--no-cacheto thedocker buildcommand.Default: - cache is used
-
getCacheFrom
@Stability(Stable) @Nullable default List<DockerCacheOption> getCacheFrom()
Cache from options to pass to thedocker buildcommand.Default: - no cache from options are passed to the build command
-
getCacheTo
@Stability(Stable) @Nullable default DockerCacheOption getCacheTo()
Cache to options to pass to thedocker buildcommand.Default: - no cache to options are passed to the build command
-
getDirectory
@Stability(Stable) @Nullable default String getDirectory()
The directory containing the Docker image build instructions.This path is relative to the asset manifest location.
Default: - Exactly one of `directory` and `executable` is required
-
getDockerBuildArgs
@Stability(Stable) @Nullable default Map<String,String> getDockerBuildArgs()
Additional build arguments.Only allowed when
directoryis set.Default: - No additional build arguments
-
getDockerBuildSecrets
@Stability(Stable) @Nullable default Map<String,String> getDockerBuildSecrets()
Additional build secrets.Only allowed when
directoryis set.Default: - No additional build secrets
-
getDockerBuildSsh
@Stability(Stable) @Nullable default String getDockerBuildSsh()
SSH agent socket or keys.Requires building with docker buildkit.
Default: - No ssh flag is set
-
getDockerBuildTarget
@Stability(Stable) @Nullable default String getDockerBuildTarget()
Target build stage in a Dockerfile with multiple build stages.Only allowed when
directoryis set.Default: - The last stage in the Dockerfile
-
getDockerFile
@Stability(Stable) @Nullable default String getDockerFile()
The name of the file with build instructions.Only allowed when
directoryis set.Default: "Dockerfile"
-
getDockerOutputs
@Stability(Stable) @Nullable default List<String> getDockerOutputs()
Outputs.Default: - no outputs are passed to the build command (default outputs are used)
-
getExecutable
@Stability(Stable) @Nullable default List<String> getExecutable()
A command-line executable that returns the name of a local Docker image on stdout after being run.Default: - Exactly one of `directory` and `executable` is required
-
getNetworkMode
@Stability(Stable) @Nullable default String getNetworkMode()
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.
Default: - no networking mode specified
-
getPlatform
@Stability(Stable) @Nullable default String getPlatform()
Platform to build for. Requires Docker Buildx.Specify this property to build images on a specific platform/architecture.
Default: - current machine platform
-
builder
@Stability(Stable) static DockerImageSource.Builder builder()
- Returns:
- a
DockerImageSource.BuilderofDockerImageSource
-
-