| Package | Description |
|---|---|
| com.google.cloud.tools.jib.api | |
| com.google.cloud.tools.jib.maven | |
| com.google.cloud.tools.jib.plugins.common |
| Modifier and Type | Method and Description |
|---|---|
JibContainerBuilder |
JibContainerBuilder.addEnvironmentVariable(String name,
String value)
Sets a variable in the container environment.
|
JibContainerBuilder |
JibContainerBuilder.addExposedPort(Port port)
Adds a port to expose from the container.
|
JibContainerBuilder |
JibContainerBuilder.addLabel(String key,
String value)
Sets a label for the container.
|
JibContainerBuilder |
JibContainerBuilder.addLayer(LayerConfiguration layerConfiguration)
Adds a layer (defined by a
LayerConfiguration). |
JibContainerBuilder |
JibContainerBuilder.addLayer(List<Path> files,
AbsoluteUnixPath pathInContainer)
Adds a new layer to the container with
files as the source files and pathInContainer as the path to copy the source files to in the container file system. |
JibContainerBuilder |
JibContainerBuilder.addLayer(List<Path> files,
String pathInContainer)
Adds a new layer to the container with
files as the source files and pathInContainer as the path to copy the source files to in the container file system. |
JibContainerBuilder |
JibContainerBuilder.addVolume(AbsoluteUnixPath volume)
Adds a directory that may hold an externally mounted volume.
|
static JibContainerBuilder |
Jib.from(ImageReference baseImageReference)
Starts building the container from a base image.
|
static JibContainerBuilder |
Jib.from(RegistryImage registryImage)
Starts building the container from a base image.
|
static JibContainerBuilder |
Jib.from(String baseImageReference)
Starts building the container from a base image.
|
static JibContainerBuilder |
Jib.fromScratch()
Starts building the container from an empty base image.
|
JibContainerBuilder |
JibContainerBuilder.setCreationTime(Instant creationTime)
Sets the container image creation time.
|
JibContainerBuilder |
JibContainerBuilder.setEntrypoint(List<String> entrypoint)
Sets the container entrypoint.
|
JibContainerBuilder |
JibContainerBuilder.setEntrypoint(String... entrypoint)
Sets the container entrypoint.
|
JibContainerBuilder |
JibContainerBuilder.setEnvironment(Map<String,String> environmentMap)
Sets the container environment.
|
JibContainerBuilder |
JibContainerBuilder.setExposedPorts(Port... ports)
Sets the ports to expose from the container.
|
JibContainerBuilder |
JibContainerBuilder.setExposedPorts(Set<Port> ports)
Sets the ports to expose from the container.
|
JibContainerBuilder |
JibContainerBuilder.setFormat(ImageFormat imageFormat)
Sets the format to build the container image as.
|
JibContainerBuilder |
JibContainerBuilder.setLabels(Map<String,String> labelMap)
Sets the labels for the container.
|
JibContainerBuilder |
JibContainerBuilder.setLayers(LayerConfiguration... layerConfigurations)
Sets the layers.
|
JibContainerBuilder |
JibContainerBuilder.setLayers(List<LayerConfiguration> layerConfigurations)
Sets the layers (defined by a list of
LayerConfigurations). |
JibContainerBuilder |
JibContainerBuilder.setProgramArguments(List<String> programArguments)
Sets the container entrypoint program arguments.
|
JibContainerBuilder |
JibContainerBuilder.setProgramArguments(String... programArguments)
Sets the container entrypoint program arguments.
|
JibContainerBuilder |
JibContainerBuilder.setUser(String user)
Sets the user and group to run the container as.
|
JibContainerBuilder |
JibContainerBuilder.setVolumes(AbsoluteUnixPath... volumes)
Sets the directories that may hold externally mounted volumes.
|
JibContainerBuilder |
JibContainerBuilder.setVolumes(Set<AbsoluteUnixPath> volumes)
Sets the directories that may hold externally mounted volumes.
|
JibContainerBuilder |
JibContainerBuilder.setWorkingDirectory(AbsoluteUnixPath workingDirectory)
Sets the working directory in the container.
|
JibContainerBuilder |
JavaContainerBuilder.toContainerBuilder()
Returns a new
JibContainerBuilder using the parameters specified on the JavaContainerBuilder. |
| Modifier and Type | Method and Description |
|---|---|
JibContainerBuilder |
MavenProjectProperties.createJibContainerBuilder(JavaContainerBuilder javaContainerBuilder,
ContainerizingMode containerizingMode) |
| Modifier and Type | Method and Description |
|---|---|
JibContainerBuilder |
ProjectProperties.createJibContainerBuilder(JavaContainerBuilder javaContainerBuilder,
ContainerizingMode containerizingMode)
Starts the containerization process.
|
static JibContainerBuilder |
JavaContainerBuilderHelper.fromExplodedWar(JavaContainerBuilder javaContainerBuilder,
Path explodedWar)
Constructs a new
JibContainerBuilder for a WAR project. |
| Modifier and Type | Method and Description |
|---|---|
static JibBuildRunner |
JibBuildRunner.forBuildImage(JibContainerBuilder jibContainerBuilder,
Containerizer containerizer,
Consumer<LogEvent> logger,
HelpfulSuggestions helpfulSuggestions,
ImageReference targetImageReference,
Set<String> additionalTags)
Creates a runner to build an image.
|
static JibBuildRunner |
JibBuildRunner.forBuildTar(JibContainerBuilder jibContainerBuilder,
Containerizer containerizer,
Consumer<LogEvent> logger,
HelpfulSuggestions helpfulSuggestions,
Path outputPath)
Creates a runner to build an image tarball.
|
static JibBuildRunner |
JibBuildRunner.forBuildToDockerDaemon(JibContainerBuilder jibContainerBuilder,
Containerizer containerizer,
Consumer<LogEvent> logger,
HelpfulSuggestions helpfulSuggestions,
ImageReference targetImageReference,
Set<String> additionalTags)
Creates a runner to build to the Docker daemon.
|
Copyright © 2019. All rights reserved.