Class JibConfig
- java.lang.Object
-
- io.quarkus.container.image.jib.deployment.JibConfig
-
@ConfigRoot(phase=BUILD_TIME) public class JibConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description booleanalwaysCacheBaseImageControls the optimization which skips downloading base image layers that exist in a target registry.StringbaseJvmImageThe base image to be used when a container image is being produced for the jar buildStringbaseNativeImageThe base image to be used when a container image is being produced for the native binary buildOptional<String>baseRegistryPasswordThe password to use to authenticate with the registry used to pull the base JVM imageOptional<String>baseRegistryUsernameThe username to use to authenticate with the registry used to pull the base JVM imageMap<String,String>environmentVariablesEnvironment variables to add to the container imageStringimageDigestFileThe path of a file that will be written containing the digest of the generated image.StringimageIdFileThe path of a file that will be written containing the id of the generated image.List<String>jvmArgumentsAdditional JVM arguments to pass to the JVM when starting the applicationOptional<List<String>>jvmEntrypointIf this is set, then it will be used as the entry point of the container image.Map<String,String>labelsCustom labels to add to the generated imageOptional<List<String>>nativeArgumentsAdditional arguments to pass when starting the native applicationOptional<List<String>>nativeEntrypointIf this is set, then it will be used as the entry point of the container image.Optional<Set<String>>platformsList of target platforms.List<Integer>portsThe ports to exposeOptional<String>userThe user to use in generated image
-
Constructor Summary
Constructors Constructor Description JibConfig()
-
-
-
Field Detail
-
baseJvmImage
@ConfigItem(defaultValue="fabric8/java-alpine-openjdk11-jre") public String baseJvmImage
The base image to be used when a container image is being produced for the jar build
-
baseNativeImage
@ConfigItem(defaultValue="registry.access.redhat.com/ubi8/ubi-minimal") public String baseNativeImage
The base image to be used when a container image is being produced for the native binary build
-
jvmArguments
@ConfigItem(defaultValue="-Djava.util.logging.manager=org.jboss.logmanager.LogManager") public List<String> jvmArguments
Additional JVM arguments to pass to the JVM when starting the application
-
nativeArguments
@ConfigItem public Optional<List<String>> nativeArguments
Additional arguments to pass when starting the native application
-
jvmEntrypoint
@ConfigItem public Optional<List<String>> jvmEntrypoint
If this is set, then it will be used as the entry point of the container image. There are a few things to be aware of when creating an entry point- A valid entrypoint is jar package specific (see
quarkus.package.type) - A valid entrypoint depends on the location of both the launching scripts and the application jar file. To that
end it's helpful to remember that when
fast-jarpackaging is used (the default), all necessary application jars are added to the/workdirectory and that the same directory is also used as the working directory. Whenlegacy-jaroruber-jarare used, the application jars are unpacked under the/appdirectory and that directory is used as the working directory. - Even if the
jvmArgumentsfield is set, it is ignored completely
- A valid entrypoint is jar package specific (see
-
nativeEntrypoint
@ConfigItem public Optional<List<String>> nativeEntrypoint
If this is set, then it will be used as the entry point of the container image. There are a few things to be aware of when creating an entry point- A valid entrypoint depends on the location of both the launching scripts and the native binary file. To that end
it's helpful to remember that the native application is added to the
/workdirectory and that and the same directory is also used as the working directory - Even if the
nativeArgumentsfield is set, it is ignored completely
- A valid entrypoint depends on the location of both the launching scripts and the native binary file. To that end
it's helpful to remember that the native application is added to the
-
environmentVariables
@ConfigItem public Map<String,String> environmentVariables
Environment variables to add to the container image
-
baseRegistryUsername
@ConfigItem public Optional<String> baseRegistryUsername
The username to use to authenticate with the registry used to pull the base JVM image
-
baseRegistryPassword
@ConfigItem public Optional<String> baseRegistryPassword
The password to use to authenticate with the registry used to pull the base JVM image
-
ports
@ConfigItem(defaultValue="${quarkus.http.port:8080}") public List<Integer> portsThe ports to expose
-
alwaysCacheBaseImage
@ConfigItem(defaultValue="false") public boolean alwaysCacheBaseImage
Controls the optimization which skips downloading base image layers that exist in a target registry. If the user does not set this property, then read as false. Iftrue, base image layers are always pulled and cached. Iffalse, base image layers will not be pulled/cached if they already exist on the target registry.
-
platforms
@ConfigItem public Optional<Set<String>> platforms
List of target platforms. Each platform is defined using the pattern: \|\ [/variant]|\ /\ [/variant] ex: linux/amd64,linux/arm64/v8. If not specified, OS default is linux and architecture default is amd64 If more than one platform is configured, it is important to note that the base image has to be a Docker manifest or an OCI image index containing a version of each chosen platform It doesn't work with native images, as cross-compilation is not supported Target Platform is a incubating feature of Jib. See Jib FAQ for more information
-
imageDigestFile
@ConfigItem(defaultValue="jib-image.digest") public String imageDigestFile
The path of a file that will be written containing the digest of the generated image. If the path is relative, is writen to the output directory of the build tool
-
imageIdFile
@ConfigItem(defaultValue="jib-image.id") public String imageIdFile
The path of a file that will be written containing the id of the generated image. If the path is relative, is writen to the output directory of the build tool
-
-