-
Notifications
You must be signed in to change notification settings - Fork 96
Cloud Foundry Java Buildpack
MSailer edited this page Jun 18, 2019
·
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 also specify those variables in the applications manifest file, e.g. adding SapMachine 11:
env:
JBP_CONFIG_COMPONENTS: '{jres: ["JavaBuildpack::Jre::SapMachineJRE"]}'
JBP_CONFIG_SAP_MACHINE_JRE: '{ jre: { version: 11.0.1_+ } }'
For more detailed instructions pleases check out the CF documentation.