Class S2iConfig
- java.lang.Object
-
- io.quarkus.container.image.s2i.deployment.S2iConfig
-
@ConfigRoot(phase=BUILD_TIME) public class S2iConfig 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 buildStringbaseNativeImageThe base image to be used when a container image is being produced for the native binary build(package private) DurationbuildTimeoutThe build timeout.static StringDEFAULT_BASE_JVM_JDK11_IMAGEstatic StringDEFAULT_BASE_JVM_JDK17_IMAGEstatic StringDEFAULT_BASE_NATIVE_IMAGEstatic StringDEFAULT_NATIVE_TARGET_FILENAMEStringjarDirectoryThe 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>>jvmAdditionalArgumentsAdditional JVM arguments to pass to the JVM when starting the applicationList<String>jvmArgumentsThe JVM arguments to pass to the JVM when starting the applicationOptional<List<String>>nativeArgumentsAdditional arguments to pass when starting the native applicationStringnativeBinaryDirectoryThe directory where the native binary is added during the assemble phase.Optional<String>nativeBinaryFileNameThe resulting filename of the native binary in the S2I image.
-
Constructor Summary
Constructors Constructor Description S2iConfig()
-
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 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
-
baseJvmImage
@ConfigItem public Optional<String> baseJvmImage
The base image to be used when a container image is being produced for the jar build
-
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
-
jvmArguments
@ConfigItem(defaultValue="-Djava.util.logging.manager=org.jboss.logmanager.LogManager") public List<String> jvmArguments
The JVM arguments to pass to the JVM when starting the application
-
jvmAdditionalArguments
@ConfigItem public Optional<List<String>> jvmAdditionalArguments
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
-
jarDirectory
@ConfigItem(defaultValue="/deployments/") public 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(defaultValue="/home/quarkus/") public 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.
-
-
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
-
-