The Paketo Open Liberty Buildpack is a Cloud Native Buildpack that contributes Open Liberty for Java EE support.
This buildpack will participate all the following conditions are met
( <APPLICATION_ROOT>/WEB-INF exists OR <APPLICATION_ROOT>/server.xml exists OR <APPLICATION_ROOT>/wlp/usr/servers/*/server.xml exists ) AND ( Main-Class is NOT defined in the mainfest )
The buildpack will do the following:
- Requests that a JRE be installed
- Contribute an Open Liberty runtime to
- Create a server called
- At launch time, symlinks
The buildpack will support all available profiles of the two most recent versions of the Open Liberty runtime. Note that because the Open Liberty versioning scheme is not conformant semantic versioning, an Open Liberty version like
126.96.36.199 is defined here as
21.0.11, and should be referenced as such.
||The version of Open Liberty to install. Defaults to the latest version of the runtime.|
||The Open Liberty profile to use. Defaults to
||If the server.xml does not specify a context root, Open Liberty will use this value as the context root. Defaults to the value of
||Sets the logging level. If not set, attempts to get the buildpack’s log level. If unable, defaults to
Default Configurations that Vary from Open Liberty’s Default
By default, the Open Liberty buildpack will log in
json format. This will aid in log ingestion. Due to design decisions from the Open Liberty team, setting this format to any other value will prevent all log types from being sent to
stdout and will instead go to
messages.log. In addition, the log sources that will go to stdout are
The Open Liberty buildpack will accept a single binding of type
open-liberty. There are currently two files supported in the binding:
server.xml. If specified, this file will replace the
server.xmland is not subject to any post-processing; therefore, any variable references therein must be resolvable.
bootstrap.properties. If specified, this file will replace the
bootstrap.properties. This is one place to define variables used by
Both files are optional, as is the binding itself.
This buildpack is released under version 2.0 of the Apache License.