Package com.google.cloud.tools.jib.api
Class DockerDaemonImage
- java.lang.Object
-
- com.google.cloud.tools.jib.api.DockerDaemonImage
-
public class DockerDaemonImage extends java.lang.Object
Builds to the Docker daemon.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DockerDaemonImage
named(ImageReference imageReference)
Instantiate with the image reference to tag the built image with.static DockerDaemonImage
named(java.lang.String imageReference)
Instantiate with the image reference to tag the built image with.DockerDaemonImage
setDockerEnvironment(java.util.Map<java.lang.String,java.lang.String> dockerEnvironment)
Sets the additional environment variables to use when runningdocker
.DockerDaemonImage
setDockerExecutable(java.nio.file.Path dockerExecutable)
Sets the path to thedocker
CLI.
-
-
-
Method Detail
-
named
public static DockerDaemonImage named(ImageReference imageReference)
Instantiate with the image reference to tag the built image with. This is the name that shows up on the Docker daemon.- Parameters:
imageReference
- the image reference- Returns:
- a new
DockerDaemonImage
-
named
public static DockerDaemonImage named(java.lang.String imageReference) throws InvalidImageReferenceException
Instantiate with the image reference to tag the built image with. This is the name that shows up on the Docker daemon.- Parameters:
imageReference
- the image reference- Returns:
- a new
DockerDaemonImage
- Throws:
InvalidImageReferenceException
- ifimageReference
is not a valid image reference
-
setDockerExecutable
public DockerDaemonImage setDockerExecutable(java.nio.file.Path dockerExecutable)
Sets the path to thedocker
CLI. This isdocker
by default.- Parameters:
dockerExecutable
- the path to thedocker
CLI- Returns:
- this
-
setDockerEnvironment
public DockerDaemonImage setDockerEnvironment(java.util.Map<java.lang.String,java.lang.String> dockerEnvironment)
Sets the additional environment variables to use when runningdocker
.- Parameters:
dockerEnvironment
- additional environment variables- Returns:
- this
-
-