The Paketo BellSoft Liberica Buildpack is a Cloud Native Buildpack that provides the BellSoft Liberica implementations of JREs and JDKs.
This buildpack is designed to work in collaboration with other buildpacks which request contributions of JREs and JDKs.
This buildpack will participate if any of the following conditions are met
- Another buildpack requires
jdk
- Another buildpack requires
jre
The buildpack will do the following if a JDK is requested:
- Contributes a JDK to a layer marked
build
andcache
with all commands on$PATH
- Contributes
$JAVA_HOME
configured to the build layer - Contributes
$JDK_HOME
configure to the build layer
The buildpack will do the following if a JRE is requested:
- Contributes a JRE to a layer with all commands on
$PATH
- Contributes
$JAVA_HOME
configured to the layer - Contributes
-XX:ActiveProcessorCount
to the layer - Contributes
$MALLOC_ARENA_MAX
to the layer - Disables JVM DNS caching if link-local DNS is available
- If
metadata.build = true
- Marks layer as
build
andcache
- Marks layer as
- If
metadata.launch = true
- Marks layer as
launch
- Marks layer as
- Contributes
jvmkill
to a layer markedlaunch
- Contributes Memory Calculator to a layer marked
launch
Environment Variable | Description |
---|---|
$BP_JVM_VERSION |
Configure a specific JDK or JRE version. This value must exactly match a version available in the buildpack so it's best to use a wildcard such as 8.* . Since the buildpack only ships a single version of each supported line (e.g. 8.* , 11.* , 14.* ) updates to the buildpack can change the version of the JDK or JRE. In order to hold the JDK and JRE versions stable, the buildpack version itself must be stable.Buildpack releases (and the dependency versions for each release) can be found here. Few users will use this buildpack directly, instead consuming a language buildpack like |
$BPL_JVM_HEAD_ROOM |
Configure the percentage of headroom the memory calculator will allocated. Defaults to 0 . |
$BPL_JVM_LOADED_CLASS_COUNT |
Configure the number of classes that will be loaded at runtime. Defaults to 35% of the number of classes. |
$BPL_JVM_THREAD_COUNT |
Configure the number of user threads at runtime. Defaults to 250 . |
$JAVA_TOOL_OPTIONS |
Configure the JVM launch flags |
The buildpack optionally accepts the following bindings:
Key | Value | Description |
---|---|---|
<dependency-digest> |
<uri> |
If needed, the buildpack will fetch the dependency with digest <dependency-digest> from <uri> |
This buildpack is released under version 2.0 of the Apache License.