-
Notifications
You must be signed in to change notification settings - Fork 95
Cloud Foundry Java Buildpack
Christoph Langer edited this page Nov 30, 2021
·
10 revisions
Starting from version v4.9 of the Cloud Foundry (CF) Java Buildpack, SapMachine can be used as a standard Java Runtime Environment. In order to use the SapMachine JRE, set the following environment variable for your Cloud Foundry application:
cf set-env <app_name> JBP_CONFIG_COMPONENTS '{jres: ["JavaBuildpack::Jre::SapMachineJRE"]}'
cf restage <app_name>
Alternatively, you can declare the environment variable in the application's manifest file:
env:
JBP_CONFIG_COMPONENTS: '{jres: ["JavaBuildpack::Jre::SapMachineJRE"]}'
or even specifying a concrete version, using the version syntax:
env:
JBP_CONFIG_COMPONENTS: '{jres: ["JavaBuildpack::Jre::SapMachineJRE"]}'
JBP_CONFIG_SAP_MACHINE_JRE: '{ jre: { version: 17.+ } }'
For more detailed instructions pleases check out the CF documentation.