Structure a Liberty repository for personal binary files
The OpenShift cartridge and the WebSphere® Application Server Liberty Buildpack both download the default Liberty and IBM® JRE binary files for development only. If you want to use your own binary files that you have other licenses for, the files must be accessible with HTTP.
Repository structure
The repository is an HTTP-accessible collection of files. The repository root must contain an
index.yml file that is a mapping of concrete versions to absolute URIs. For
example,
<version>:
uri: <URI of binary>
license: <URI of license>
You can store your files in the repository. For example,
/index.yml
/ibm-java-jre-7.0-5.0-x86_64-archive.bin
/ibm-java-jre-7.0-5.0-x86_64-License.html
Versions are composed of the following four parts: major, minor, micro, and optional qualifier.
The version format is
<major>.<minor>.<micro>[_<qualifier>].
Part | Requirement |
---|---|
Major | Numeric |
Minor | Numeric |
Micro | Numeric |
Optional qualifier | Letters, digits, and hyphens with lexical order:
|
Aside from declaring a specific version to use, you can also specify a bounded range of versions.
You can append the + symbol to a version prefix to use the latest version that
begins with the prefix.
Example | Description |
---|---|
1.+ | Selects the greatest available version less than 2.0.0. |
1.7.+ | Selects the greatest available version less than 1.8.0. |
1.7.0+ | Selects the greatest available version less than 1.7.1. Note: Use this syntax to stay up to
security releases in a particular version.
|
For examples of index.yml files that illustrate the guidelines for the repository structure detailed in this document, see
https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/downloads/wlp/index.yml
https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/downloads/jre/index.yml