@Generated(value="jsii-pacmak/1.15.0 (build 585166b)", date="2020-12-12T01:56:02.116Z") @Stability(value=Stable) public class BundlingDockerImage extends software.amazon.jsii.JsiiObject
| Modifier | Constructor and Description |
|---|---|
protected |
BundlingDockerImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
BundlingDockerImage(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
cp(String imagePath,
String outputPath)
Copies a file or directory out of the Docker image to the local filesystem.
|
static BundlingDockerImage |
fromAsset(String path)
Reference an image that's built directly from sources on disk.
|
static BundlingDockerImage |
fromAsset(String path,
DockerBuildOptions options)
Reference an image that's built directly from sources on disk.
|
static BundlingDockerImage |
fromRegistry(String image)
Reference an image on DockerHub or another online registry.
|
String |
getImage()
The Docker image.
|
void |
run()
Runs a Docker image.
|
void |
run(DockerRunOptions options)
Runs a Docker image.
|
String |
toJSON()
Provides a stable representation of this image for JSON serialization.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected BundlingDockerImage(software.amazon.jsii.JsiiObjectRef objRef)
protected BundlingDockerImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) @NotNull public static BundlingDockerImage fromAsset(@NotNull String path, @Nullable DockerBuildOptions options)
path - The path to the directory containing the Docker file. This parameter is required.options - Docker build options.@Stability(value=Stable) @NotNull public static BundlingDockerImage fromAsset(@NotNull String path)
path - The path to the directory containing the Docker file. This parameter is required.@Stability(value=Stable) @NotNull public static BundlingDockerImage fromRegistry(@NotNull String image)
image - the image name. This parameter is required.@Stability(value=Stable)
public void cp(@NotNull
String imagePath,
@NotNull
String outputPath)
imagePath - This parameter is required.outputPath - This parameter is required.@Stability(value=Stable)
public void run(@Nullable
DockerRunOptions options)
options - @Stability(value=Stable) public void run()
@Stability(value=Stable) @NotNull public String toJSON()
@Stability(value=Stable) @NotNull public String getImage()
Copyright © 2020. All rights reserved.