| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Image.Builder<T> |
addEnvironment(Map<String,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(Instant created)
Sets the image creation time.
|
Image.Builder<T> |
setEntrypoint(List<String> entrypoint)
Sets the entrypoint of the image.
|
Image.Builder<T> |
setEnvironmentVariable(String name,
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(List<String> javaArguments)
Sets the items in the "Cmd" field in the container configuration (i.e.
|
public Image.Builder<T> setCreated(Instant created)
created - the creation timepublic Image.Builder<T> addEnvironment(@Nullable Map<String,String> environment)
environment - the map of environment variablespublic Image.Builder<T> setEnvironmentVariable(String name, String value)
name - the name of the variablevalue - the value to set it topublic Image.Builder<T> setEntrypoint(@Nullable List<String> entrypoint)
entrypoint - the list of entrypoint tokenspublic Image.Builder<T> setJavaArguments(@Nullable List<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 failsCopyright © 2018. All rights reserved.