Skip to content
Please note that GitHub no longer supports Internet Explorer.

We recommend upgrading to the latest Microsoft Edge, Google Chrome, or Firefox.

Learn more
No description, website, or topics provided.
Go Shell
Branch: master
Clone or download
Pivotal Java Experience Team
Pivotal Java Experience Team Go Module Update
Signed-off-by: Pivotal Java Experience Team <cfje@pivotal.io>
Latest commit 2e68687 Feb 1, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build Module name updates Jan 24, 2020
detect Module name updates Jan 24, 2020
dns Module name updates Jan 24, 2020
internal Module name updates Jan 24, 2020
jdk Module name updates Jan 24, 2020
jre Module name updates Jan 24, 2020
jvmkill Module name updates Jan 24, 2020
memcalc Module name updates Jan 24, 2020
provider Module name updates Jan 24, 2020
scripts
security Module name updates Jan 24, 2020
.gitignore Exclude packaged-cnb Aug 28, 2019
LICENSE Copyright Updates Jun 11, 2019
NOTICE Copyright Updates Jun 11, 2019
README.md More lenient version converter Jan 24, 2020
buildpack.toml Dependency Upgrade: memory-calculator 4.0.0 Jan 24, 2020
go.mod Go Module Update Feb 1, 2020
go.sum

README.md

openjdk-cnb

The Cloud Foundry OpenJDK Buildpack is a Cloud Native Buildpack V3 that provides OpenJDK JREs and JDKs to applications.

This buildpack is designed to work in collaboration with other buildpacks which request contributions of JREs and JDKs.

Behavior

This buildpack will participate if any of the following conditions are met

  • Another buildpack requires openjdk-jdk
  • Another buildpack requires openjdk-jre

The buildpack will do the following if a JDK is requested:

  • Contributes a JDK to a layer marked build and cache 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 and cache
  • If metadata.launch = true
    • Marks layer as launch
  • Contributes jvmkill to a layer marked launch
  • Contributes Memory Calculator to a layer marked launch

Configuration

Environment Variable Description
$BP_JAVA_VERSION Configure a specific JDK or JRE version. This value must exactly match a version available in the buildpack so typically it would configured to a wildcard such as 8.*.
$BPL_HEAD_ROOM Configure the percentage of headroom the memory calculator will allocated. Defaults to 0.
$BPL_LOADED_CLASS_COUNT Configure the number of classes that will be loaded at runtime. Defaults to 35% of the number of classes.
$BPL_THREAD_COUNT Configure the number of user threads at runtime. Defaults to 250.

License

This buildpack is released under version 2.0 of the Apache License.

You can’t perform that action at this time.