Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 1.32 KB

configuration.md

File metadata and controls

34 lines (22 loc) · 1.32 KB

Configuration

Buildpack configuration can be overridden with an environment variable matching the configuration file you wish to override minus the .yml extension and with a prefix of JBP_CONFIG. The value of the variable should be valid inline yaml. For example:

  1. Configure the buildpack to use Liberty profile beta:

    cf set-env myApplication JBP_CONFIG_LIBERTY '[version: 2015.+]'
  2. Configure the buildpack with a custom set of Liberty profile features (for WAR and EAR files only):

    cf set-env myApplication JBP_CONFIG_LIBERTY '[default_config: {features: [jsp-2.2, websocket-1.1]}]'
  3. Configure the buildpack to use OpenJDK 8:

    cf set-env myApplication JBP_CONFIG_OPENJDK '[version: 1.8.+]'
    cf set-env myApplication JVM openjdk
  4. Disable Spring Auto Reconfiguration:

    cf set-env myApplication JBP_CONFIG_SPRINGAUTORECONFIGURATION '[enabled: false]'

The environment variables can also be specified in the applications manifest.yml file. See the Environment Variables documentation for more information.