| Package | Description |
|---|---|
| com.google.cloud.tools.jib.image |
| Modifier and Type | Method and Description |
|---|---|
Image.Builder |
Image.Builder.addEnvironment(Map<String,String> environment)
Adds a map of environment variables to the current map.
|
Image.Builder |
Image.Builder.addEnvironmentVariable(String name,
String value)
Adds an environment variable with a given name and value.
|
Image.Builder |
Image.Builder.addExposedPorts(Set<Port> exposedPorts)
Adds items to the "ExposedPorts" field in the container configuration.
|
Image.Builder |
Image.Builder.addHistory(HistoryEntry history)
Adds a history element to the image.
|
Image.Builder |
Image.Builder.addLabel(String name,
String value)
Adds an item to the "Labels" field in the container configuration.
|
Image.Builder |
Image.Builder.addLabels(Map<String,String> labels)
Adds items to the "Labels" field in the container configuration.
|
Image.Builder |
Image.Builder.addLayer(Layer layer)
Adds a layer to the image.
|
Image.Builder |
Image.Builder.addVolumes(Set<AbsoluteUnixPath> volumes)
Adds items to the "Volumes" field in the container configuration.
|
static Image.Builder |
Image.builder(Class<? extends ManifestTemplate> imageFormat) |
Image.Builder |
Image.Builder.setArchitecture(String architecture)
Sets the image architecture.
|
Image.Builder |
Image.Builder.setCreated(Instant created)
Sets the image creation time.
|
Image.Builder |
Image.Builder.setEntrypoint(List<String> entrypoint)
Sets the entrypoint of the image.
|
Image.Builder |
Image.Builder.setHealthCheck(DockerHealthCheck healthCheck)
Sets the container's healthcheck configuration.
|
Image.Builder |
Image.Builder.setOs(String os)
Sets the image operating system.
|
Image.Builder |
Image.Builder.setProgramArguments(List<String> programArguments)
Sets the items in the "Cmd" field in the container configuration.
|
Image.Builder |
Image.Builder.setUser(String user)
Sets the user/group to run the container as.
|
Image.Builder |
Image.Builder.setWorkingDirectory(String workingDirectory)
Sets the item in the "WorkingDir" field in the container configuration.
|
Copyright © 2019. All rights reserved.