@ConfigRoot(phase=BUILD_TIME) public class JibConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
alwaysCacheBaseImage
Controls the optimization which skips downloading base image layers that exist in a target
registry.
|
String |
baseJvmImage
The base image to be used when a container image is being produced for the jar build
|
String |
baseNativeImage
The base image to be used when a container image is being produced for the native binary build
|
Optional<String> |
baseRegistryPassword
The password to use to authenticate with the registry used to pull the base JVM image
|
Optional<String> |
baseRegistryUsername
The username to use to authenticate with the registry used to pull the base JVM image
|
Map<String,String> |
environmentVariables
Environment variables to add to the container image
|
List<String> |
jvmArguments
Additional JVM arguments to pass to the JVM when starting the application
|
Optional<List<String>> |
jvmEntrypoint
If this is set, then it will be used as the entry point of the container image.
|
Map<String,String> |
labels
Custom labels to add to the generated image
|
Optional<List<String>> |
nativeArguments
Additional arguments to pass when starting the native application
|
Optional<List<String>> |
nativeEntrypoint
If this is set, then it will be used as the entry point of the container image.
|
List<Integer> |
ports
The ports to expose
|
Optional<String> |
user
The user to use in generated image
|
| Constructor and Description |
|---|
JibConfig() |
@ConfigItem(defaultValue="fabric8/java-alpine-openjdk11-jre") public String baseJvmImage
@ConfigItem(defaultValue="registry.access.redhat.com/ubi8/ubi-minimal") public String baseNativeImage
@ConfigItem(defaultValue="-Djava.util.logging.manager=org.jboss.logmanager.LogManager") public List<String> jvmArguments
@ConfigItem public Optional<List<String>> nativeArguments
@ConfigItem public Optional<List<String>> jvmEntrypoint
quarkus.package.type)fast-jar packaging is used (the default), all necessary application
jars are added to the /work directory and that the same
directory is also used as the working directory. When legacy-jar or uber-jar are used, the application
jars
are unpacked under the /app directory
and that directory is used as the working directory.jvmArguments field is set, it is ignored completely@ConfigItem public Optional<List<String>> nativeEntrypoint
/work directory and that and the same
directory is also used as the working directorynativeArguments field is set, it is ignored completely@ConfigItem public Map<String,String> environmentVariables
@ConfigItem public Optional<String> baseRegistryUsername
@ConfigItem public Optional<String> baseRegistryPassword
@ConfigItem(defaultValue="false") public boolean alwaysCacheBaseImage
true, base image layers are always pulled and cached. If
false, base image layers will not be pulled/cached if they already exist on the
target registry.Copyright © 2021 JBoss by Red Hat. All rights reserved.