You can run a web application or Liberty server package in the Liberty Container.
Detection Criterion | Existence of a server.xml or WEB-INF/ folder in the application directory |
Tags | liberty-⟨version⟩ |
To specify the Spring profiles, set the SPRING_PROFILES_ACTIVE
environment variable. This is automatically detected and used by Spring.
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