Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 2.22 KB

container-liberty.md

File metadata and controls

42 lines (32 loc) · 2.22 KB

Liberty Container

You can run a web application or Liberty server package in the Liberty Container.

Detection CriterionExistence of a server.xml or WEB-INF/ folder in the application directory
Tagsliberty-⟨version⟩
Tags are printed to standard output by the Buildpack `detect` script.

To specify the Spring profiles, set the SPRING_PROFILES_ACTIVE environment variable. This is automatically detected and used by Spring.

Configuration

For general information on configuring the Buildpack, refer to Configuration and Extension.

You can modify the config/liberty.yml file to configure the container. The container uses the Repository utility support and it supports the version syntax.

Name Description
repository_root The URL of the Liberty repository index (details).
version The version of the Liberty profile. You can find the candidate versions here.
minify Boolean indicating whether the Liberty server should be minified. Minification potentially reduces the size of the deployed Liberty server because only the requested features are included, but it might result in longer push times. The default value is false.

The minify option can be overridden on a per-application basis by specifying a minify environment variable in the manifest.yml for the application. For example:

  env:
    minify: true