Interface ContainerImageOpenshiftConfig
@ConfigRoot(phase=BUILD_TIME)
@ConfigMapping(prefix="quarkus.openshift")
public interface ContainerImageOpenshiftConfig
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionThe base image to be used when a container image is being produced for the jar build.The base image to be used when a container image is being produced for the native binary build.org.jboss.logging.Logger.LevelThe log level of OpenShift build log.The build config strategy to use.The build timeout.static StringgetDefaultJvmImage(io.quarkus.deployment.pkg.builditem.CompiledJavaVersionBuildItem.JavaVersion version) default booleanCheck if baseJvmImage is the defaultdefault booleanCheck if baseNativeImage is the defaultdefault booleanCheck if jvmDockerfile is the defaultdefault booleanCheck if nativeDockerfile is the defaultThe image push secret to use for pushing to external registries.The directory where the jar is added during the assemble phase.The resulting filename of the jar in the S2I image.The JVM arguments to pass to the JVM when starting the applicationThe default Dockerfile to use for jvm buildsAdditional arguments to pass when starting the native applicationThe directory where the native binary is added during the assemble phase.The resulting filename of the native binary in the S2I image.The default Dockerfile to use for native builds
-
Field Details
-
DEFAULT_NATIVE_TARGET_FILENAME
- See Also:
-
DEFAULT_JVM_DOCKERFILE
- See Also:
-
DEFAULT_NATIVE_DOCKERFILE
- See Also:
-
DEFAULT_BUILD_LOG_LEVEL
- See Also:
-
FALLBACK_JAR_DIRECTORY
- See Also:
-
FALLBACK_NATIVE_BINARY_DIRECTORY
- See Also:
-
-
Method Details
-
getDefaultJvmImage
static String getDefaultJvmImage(io.quarkus.deployment.pkg.builditem.CompiledJavaVersionBuildItem.JavaVersion version) -
buildStrategy
The build config strategy to use. -
baseJvmImage
The base image to be used when a container image is being produced for the jar build. The value of this property is used to create an ImageStream for the builder image used in the Openshift build. When it references images already available in the internal Openshift registry, the corresponding streams are used instead. When the application is built against Java 21 or higher,registry.access.redhat.com/ubi9/openjdk-21:1.23is used as the default. Otherwiseregistry.access.redhat.com/ubi9/openjdk-17:1.23is used as the default. -
baseNativeImage
The base image to be used when a container image is being produced for the native binary build. The value of this property is used to create an ImageStream for the builder image used in the Openshift build. When it references images already available in the internal Openshift registry, the corresponding streams are used instead. -
jvmDockerfile
The default Dockerfile to use for jvm builds -
nativeDockerfile
The default Dockerfile to use for native builds -
jvmArguments
The JVM arguments to pass to the JVM when starting the application -
nativeArguments
Additional arguments to pass when starting the native application -
jarDirectory
The directory where the jar is added during the assemble phase. This is dependent on the S2I image and should be supplied if a non default image is used. -
jarFileName
The resulting filename of the jar in the S2I image. This option may be used if the selected S2I image uses a fixed name for the jar. -
nativeBinaryDirectory
The directory where the native binary is added during the assemble phase. This is dependent on the S2I image and should be supplied if a non-default image is used. -
nativeBinaryFileName
The resulting filename of the native binary in the S2I image. This option may be used if the selected S2I image uses a fixed name for the native binary. -
buildTimeout
The build timeout. -
buildLogLevel
@WithDefault("INFO") org.jboss.logging.Logger.Level buildLogLevel()The log level of OpenShift build log. -
imagePushSecret
The image push secret to use for pushing to external registries. (see: https://cloud.redhat.com/blog/pushing-application-images-to-an-external-registry) -
hasDefaultBaseJvmImage
default boolean hasDefaultBaseJvmImage()Check if baseJvmImage is the default -
hasDefaultBaseNativeImage
default boolean hasDefaultBaseNativeImage()Check if baseNativeImage is the default -
hasDefaultJvmDockerfile
default boolean hasDefaultJvmDockerfile()Check if jvmDockerfile is the default -
hasDefaultNativeDockerfile
default boolean hasDefaultNativeDockerfile()Check if nativeDockerfile is the default -
getEffectiveJvmArguments
- Returns:
- the effective JVM arguments to use by getting the jvmArguments and the jvmAdditionalArguments properties.
-