Ce contenu n'est pas disponible dans la langue sélectionnée.
7.2. Cartridge Environment Variables
OpenShift Enterprise provides three environment variables for all cartridges by default. These variables are read-only.
Name | Value |
---|---|
OPENSHIFT_{Cartridge-Short-Name}_DIR | The directory where cartridge information is installed. |
OPENSHIFT_{Cartridge-Short-Name}_IDENT | The identity of the cartridge, sourced from its manifest.yml file. The format is Cartridge-Vendor:Version:Cartridge-Version . |
OPENSHIFT_PRIMARY_CARTRIDGE_DIR | The directory where the primary cartridge on a gear is installed. For example, a scaling PHP application has both a PHP cartridge and a HAProxy cartridge installed on the head gear. In this case, the PHP cartridge is the primary cartridge. |