| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Image.Builder<T> |
addEnvironment(java.util.Map<java.lang.String,java.lang.String> environment)
Adds a map of environment variables to the current map.
|
Image.Builder<T> |
addLayer(T layer)
Adds a layer to the image.
|
Image<T> |
build() |
Image.Builder<T> |
setCreated(java.time.Instant created)
Sets the image creation time.
|
Image.Builder<T> |
setEntrypoint(java.util.List<java.lang.String> entrypoint)
Sets the entrypoint of the image.
|
Image.Builder<T> |
setEnvironmentVariable(java.lang.String name,
java.lang.String value)
Adds an environment variable with a given name and value.
|
Image.Builder<T> |
setExposedPorts(com.google.common.collect.ImmutableList<Port> exposedPorts)
Sets the items in the "ExposedPorts" field in the container configuration.
|
Image.Builder<T> |
setJavaArguments(java.util.List<java.lang.String> javaArguments)
Sets the items in the "Cmd" field in the container configuration (i.e.
|
public Image.Builder<T> setCreated(java.time.Instant created)
created - the creation timepublic Image.Builder<T> addEnvironment(@Nullable java.util.Map<java.lang.String,java.lang.String> environment)
environment - the map of environment variablespublic Image.Builder<T> setEnvironmentVariable(java.lang.String name, java.lang.String value)
name - the name of the variablevalue - the value to set it topublic Image.Builder<T> setEntrypoint(@Nullable java.util.List<java.lang.String> entrypoint)
entrypoint - the list of entrypoint tokenspublic Image.Builder<T> setJavaArguments(@Nullable java.util.List<java.lang.String> javaArguments)
javaArguments - the list of main args to addpublic Image.Builder<T> setExposedPorts(@Nullable com.google.common.collect.ImmutableList<Port> exposedPorts)
exposedPorts - the list of exposed ports to addpublic Image.Builder<T> addLayer(T layer) throws LayerPropertyNotFoundException
layer - the layer to addLayerPropertyNotFoundException - if adding the layer fails