Bug 971208
Summary: | [RFE] Generic environment variables for IP and PORT are deprecated - now cartridge-specific | ||
---|---|---|---|
Product: | OpenShift Online | Reporter: | Joshua Wulf <jwulf> |
Component: | Documentation | Assignee: | brice <bfallonf> |
Status: | CLOSED NOTABUG | QA Contact: | ecs-bugs |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 2.x | CC: | baulakh, jokerman, mmccomas |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-07-29 01:16:00 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Joshua Wulf
2013-06-06 02:25:10 UTC
mmcgrath: (OPENSHIFT_INTERNAL_IP) is deprecated as of this erelease but still there for older apps for the time being The NODEJS variables are documented here: https://github.com/openshift/origin-server/tree/master/cartridges/openshift-origin-cartridge-nodejs Not all the cartridges contain the environment variables, but this one does, for example: https://github.com/openshift/origin-server/tree/master/cartridges/openshift-origin-cartridge-jbossas Here's the list of cartridges: https://github.com/openshift/origin-server/tree/master/cartridges Here's the cartridge definition guidelines that talk about defining those cartridge-specific variables: https://github.com/openshift/origin-server/blob/master/node/README.writing_cartridges.md#exposing-services--tcp-endpoints Yep, that's it. The _PORT and _IP variable is defined per-cartridge in the manifest.yml file in the metadata subdirectory of the cartridge. Here's an example: The Ruby cartridge readme (https://github.com/openshift/origin-server/blob/master/cartridges/openshift-origin-cartridge-ruby/README.md) does not detail the Ruby cartridge variables, but you can see them here: https://github.com/openshift/origin-server/blob/master/cartridges/openshift-origin-cartridge-ruby/metadata/manifest.yml#L29 I'd like to request a new section with a series of tables for each cartridge detailing the specific environment variables defined in each one. Version 1 cartridges provided the environment variables OPENSHIFT_INTERNAL_IP and OPENSHIFT_INTERNAL_PORT. Version 1 cartridges are deprecated, and new gears use Version 2 cartridges. Version 2 cartridges use cartridge-specific environment variables to provide address and port information for your application. Gears report their Version 2 cartridge support in the welcome message when you ssh into the gear: <screen>Note: Your application supports version 2 cartridges.</screen> Closing this BZ. The focus of the documentation team is going to shift from OpenShift v2 to v3, and only the remaining v2 doc BZs that feature actual errors in the docs will be worked on. If there are any oppositions for any specific BZs, please contact me or the docs team. |