Class ContainerImageOpenshiftConfig
- java.lang.Object
-
- io.quarkus.container.image.openshift.deployment.ContainerImageOpenshiftConfig
-
@ConfigRoot(name="openshift", phase=BUILD_TIME) public class ContainerImageOpenshiftConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description Optional<String>baseJvmImageThe base image to be used when a container image is being produced for the jar build.StringbaseNativeImageThe base image to be used when a container image is being produced for the native binary buildorg.jboss.logging.Logger.LevelbuildLogLevelThe log level of OpenShift build log.BuildStrategybuildStrategyThe build config strategy to use.(package private) DurationbuildTimeoutThe build timeout.static StringDEFAULT_BASE_JVM_JDK11_IMAGEstatic StringDEFAULT_BASE_JVM_JDK17_IMAGEstatic StringDEFAULT_BASE_NATIVE_IMAGEstatic StringDEFAULT_BUILD_LOG_LEVELstatic StringDEFAULT_JVM_DOCKERFILEstatic StringDEFAULT_NATIVE_DOCKERFILEstatic StringDEFAULT_NATIVE_TARGET_FILENAMEstatic StringFALLBACK_JAR_DIRECTORYstatic StringFALLBACK_NATIVE_BINARY_DIRECTORYOptional<String>jarDirectoryThe directory where the jar is added during the assemble phase.Optional<String>jarFileNameThe resulting filename of the jar in the S2I image.Optional<List<String>>jvmArgumentsThe JVM arguments to pass to the JVM when starting the applicationStringjvmDockerfileThe default Dockerfile to use for jvm buildsOptional<List<String>>nativeArgumentsAdditional arguments to pass when starting the native applicationOptional<String>nativeBinaryDirectoryThe directory where the native binary is added during the assemble phase.Optional<String>nativeBinaryFileNameThe resulting filename of the native binary in the S2I image.StringnativeDockerfileThe default Dockerfile to use for native builds
-
Constructor Summary
Constructors Constructor Description ContainerImageOpenshiftConfig()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringgetDefaultJvmImage(io.quarkus.deployment.pkg.builditem.CompiledJavaVersionBuildItem.JavaVersion version)List<String>getEffectiveJvmArguments()booleanhasDefaultBaseJvmImage()Check if baseJvmImage is the defaultbooleanhasDefaultBaseNativeImage()Check if baseNativeImage is the defaultbooleanhasDefaultJvmDockerfile()Check if jvmDockerfile is the defaultbooleanhasDefaultNativeDockerfile()Check if nativeDockerfile is the default
-
-
-
Field Detail
-
DEFAULT_BASE_JVM_JDK11_IMAGE
public static final String DEFAULT_BASE_JVM_JDK11_IMAGE
- See Also:
- Constant Field Values
-
DEFAULT_BASE_JVM_JDK17_IMAGE
public static final String DEFAULT_BASE_JVM_JDK17_IMAGE
- See Also:
- Constant Field Values
-
DEFAULT_BASE_NATIVE_IMAGE
public static final String DEFAULT_BASE_NATIVE_IMAGE
- See Also:
- Constant Field Values
-
DEFAULT_NATIVE_TARGET_FILENAME
public static final String DEFAULT_NATIVE_TARGET_FILENAME
- See Also:
- Constant Field Values
-
DEFAULT_JVM_DOCKERFILE
public static final String DEFAULT_JVM_DOCKERFILE
- See Also:
- Constant Field Values
-
DEFAULT_NATIVE_DOCKERFILE
public static final String DEFAULT_NATIVE_DOCKERFILE
- See Also:
- Constant Field Values
-
DEFAULT_BUILD_LOG_LEVEL
public static final String DEFAULT_BUILD_LOG_LEVEL
- See Also:
- Constant Field Values
-
FALLBACK_JAR_DIRECTORY
public static final String FALLBACK_JAR_DIRECTORY
- See Also:
- Constant Field Values
-
FALLBACK_NATIVE_BINARY_DIRECTORY
public static final String FALLBACK_NATIVE_BINARY_DIRECTORY
- See Also:
- Constant Field Values
-
buildStrategy
@ConfigItem(defaultValue="binary") public BuildStrategy buildStrategy
The build config strategy to use.
-
baseJvmImage
@ConfigItem public Optional<String> baseJvmImage
The base image to be used when a container image is being produced for the jar build. When the application is built against Java 17 or higher,registry.access.redhat.com/ubi8/openjdk-17:1.16is used as the default. Otherwiseregistry.access.redhat.com/ubi8/openjdk-11:1.16is used as the default.
-
baseNativeImage
@ConfigItem(defaultValue="quay.io/quarkus/ubi-quarkus-native-binary-s2i:2.0") public String baseNativeImage
The base image to be used when a container image is being produced for the native binary build
-
jvmDockerfile
@ConfigItem(defaultValue="src/main/docker/Dockerfile.jvm") public String jvmDockerfile
The default Dockerfile to use for jvm builds
-
nativeDockerfile
@ConfigItem(defaultValue="src/main/docker/Dockerfile.native") public String nativeDockerfile
The default Dockerfile to use for native builds
-
jvmArguments
@ConfigItem public Optional<List<String>> jvmArguments
The 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
-
jarDirectory
@ConfigItem public Optional<String> 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
@ConfigItem public Optional<String> 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
@ConfigItem public Optional<String> 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
@ConfigItem public Optional<String> 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
@ConfigItem(defaultValue="PT5M") Duration buildTimeout
The build timeout.
-
buildLogLevel
@ConfigItem(defaultValue="INFO") public org.jboss.logging.Logger.Level buildLogLevel
The log level of OpenShift build log.
-
-
Method Detail
-
getDefaultJvmImage
public static String getDefaultJvmImage(io.quarkus.deployment.pkg.builditem.CompiledJavaVersionBuildItem.JavaVersion version)
-
hasDefaultBaseJvmImage
public boolean hasDefaultBaseJvmImage()
Check if baseJvmImage is the default
-
hasDefaultBaseNativeImage
public boolean hasDefaultBaseNativeImage()
Check if baseNativeImage is the default
-
hasDefaultJvmDockerfile
public boolean hasDefaultJvmDockerfile()
Check if jvmDockerfile is the default
-
hasDefaultNativeDockerfile
public boolean hasDefaultNativeDockerfile()
Check if nativeDockerfile is the default
-
-