| 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 |
|---|---|
JavaContainerBuilder |
JavaContainerBuilder.addClasses(Path classFilesDirectory)
Adds the contents of a classes directory to the image.
|
JavaContainerBuilder |
JavaContainerBuilder.addClasses(Path classFilesDirectory,
Predicate<Path> pathFilter)
Adds the contents of a classes directory to the image.
|
JavaContainerBuilder |
JavaContainerBuilder.addDependencies(List<Path> dependencyFiles)
Adds dependency JARs to the image.
|
JavaContainerBuilder |
JavaContainerBuilder.addDependencies(Path... dependencyFiles)
Adds dependency JARs to the image.
|
JavaContainerBuilder |
JavaContainerBuilder.addJvmFlag(String jvmFlag)
Adds a JVM flag to use when starting the application.
|
JavaContainerBuilder |
JavaContainerBuilder.addJvmFlags(List<String> jvmFlags)
Adds JVM flags to use when starting the application.
|
JavaContainerBuilder |
JavaContainerBuilder.addJvmFlags(String... jvmFlags)
Adds JVM flags to use when starting the application.
|
JavaContainerBuilder |
JavaContainerBuilder.addProjectDependencies(List<Path> dependencyFiles)
Adds project dependency JARs to the image.
|
JavaContainerBuilder |
JavaContainerBuilder.addProjectDependencies(Path... dependencyFiles)
Adds project dependency JARs to the image.
|
JavaContainerBuilder |
JavaContainerBuilder.addResources(Path resourceFilesDirectory)
Adds the contents of a resources directory to the image.
|
JavaContainerBuilder |
JavaContainerBuilder.addResources(Path resourceFilesDirectory,
Predicate<Path> pathFilter)
Adds the contents of a resources directory to the image.
|
JavaContainerBuilder |
JavaContainerBuilder.addSnapshotDependencies(List<Path> dependencyFiles)
Adds snapshot dependency JARs to the image.
|
JavaContainerBuilder |
JavaContainerBuilder.addSnapshotDependencies(Path... dependencyFiles)
Adds snapshot dependency JARs to the image.
|
JavaContainerBuilder |
JavaContainerBuilder.addToClasspath(List<Path> otherFiles)
Adds additional files to the classpath.
|
JavaContainerBuilder |
JavaContainerBuilder.addToClasspath(Path... otherFiles)
Adds additional files to the classpath.
|
static JavaContainerBuilder |
JavaContainerBuilder.from(ImageReference baseImageReference)
Creates a new
JavaContainerBuilder with the specified base image reference. |
static JavaContainerBuilder |
JavaContainerBuilder.from(RegistryImage registryImage)
Creates a new
JavaContainerBuilder with the specified base image. |
static JavaContainerBuilder |
JavaContainerBuilder.from(String baseImageReference)
Creates a new
JavaContainerBuilder with the specified base image reference. |
static JavaContainerBuilder |
JavaContainerBuilder.fromDistroless()
Creates a new
JavaContainerBuilder that uses distroless java as the base image. |
static JavaContainerBuilder |
JavaContainerBuilder.fromDistrolessJetty()
Creates a new
JavaContainerBuilder that uses distroless jetty as the base image. |
JavaContainerBuilder |
JavaContainerBuilder.setAppRoot(AbsoluteUnixPath appRoot)
Sets the app root of the container image (useful for building WAR containers).
|
JavaContainerBuilder |
JavaContainerBuilder.setAppRoot(String appRoot)
Sets the app root of the container image (useful for building WAR containers).
|
JavaContainerBuilder |
JavaContainerBuilder.setClassesDestination(RelativeUnixPath classesDestination)
Sets the destination directory of the classes added to the container (relative to the app
root).
|
JavaContainerBuilder |
JavaContainerBuilder.setDependenciesDestination(RelativeUnixPath dependenciesDestination)
Sets the destination directory of the dependencies added to the container (relative to the app
root).
|
JavaContainerBuilder |
JavaContainerBuilder.setMainClass(String mainClass)
Sets the container entrypoint with the specified main class.
|
JavaContainerBuilder |
JavaContainerBuilder.setModificationTimeProvider(BiFunction<Path,AbsoluteUnixPath,Instant> modificationTimeProvider)
Sets the modification time provider for container files.
|
JavaContainerBuilder |
JavaContainerBuilder.setOthersDestination(RelativeUnixPath othersDestination)
Sets the destination directory of additional classpath files added to the container (relative
to the app root).
|
JavaContainerBuilder |
JavaContainerBuilder.setResourcesDestination(RelativeUnixPath resourcesDestination)
Sets the destination directory of the resources added to the container (relative to the app
root).
|
| 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. |
Copyright © 2019. All rights reserved.