Skip to content

Instantly share code, notes, and snippets.

@notthetup
Created December 4, 2015 04:07
Show Gist options
  • Save notthetup/34e2d2b6aaf5d98c99f1 to your computer and use it in GitHub Desktop.
Save notthetup/34e2d2b6aaf5d98c99f1 to your computer and use it in GitHub Desktop.
Name: node-four
Cartridge-Short-Name: NODE4
Display-Name: node v4
Description: "Node.js v4 cartridge"
Version: '1.0.0'
Source-Url: https://github.com/notthetup/openshift-node4.git
License: "Apache v2"
License-Url: https://github.com/connyay/openshift-node4/blob/master/LICENSE
Cartridge-Version: 0.1
Compatible-Versions: ['0.1']
Cartridge-Vendor: connyay
Vendor: connyay
Categories:
- service
- javascript
- nodejs
- web_framework
Cart-Data:
- Key: OPENSHIFT_NODE4_LOG_DIR
Type: environment
Description: "Directory to store application log files."
- Key: OPENSHIFT_TMP_DIR
Type: environment
Description: "Directory to store application temporary files."
- Key: OPENSHIFT_REPO_DIR
Type: environemnt
Description: "Application root directory where application files reside. This directory is reset every time you do a git-push"
- Key: OPENSHIFT_NODE4_PORT
Type: environment
Description: "Internal port to which the web-framework binds to."
- Key: OPENSHIFT_NODE4_IP
Type: environment
Description: "Internal IP to which the web-framework binds to."
- Key: OPENSHIFT_APP_DNS
Type: environment
Description: "Fully qualified domain name for the application."
- Key: OPENSHIFT_APP_NAME
Type: environment
Description: "Application name"
- Key: OPENSHIFT_DATA_DIR
Type: environment
Description: "Directory to store application data files. Preserved across git-pushes. Not shared across gears."
- Key: OPENSHIFT_APP_UUID
Type: environment
Description: "Unique ID which identified the application. Does not change between gears."
- Key: OPENSHIFT_GEAR_UUID
Type: environment
Description: "Unique ID which identified the gear. This value changes between gears."
Provides:
- nodejs-0.10
- "nodejs"
- iojs
Publishes:
get-doc-root:
Type: "FILESYSTEM:doc-root"
publish-http-url:
Type: "NET_TCP:httpd-proxy-info"
publish-gear-endpoint:
Type: "NET_TCP:gear-endpoint-info"
Subscribes:
set-db-connection-info:
Type: "ENV:NET_TCP:db:connection-info"
Required: false
set-mysql-connection-info:
Type: "NET_TCP:db:mysql"
Required : false
set-postgres-connection-info:
Type: "NET_TCP:db:postgres"
Required : false
set-nosql-db-connection-info:
Type: "ENV:NET_TCP:nosqldb:connection-info"
Required : false
Scaling:
Min: 1
Max: -1
Group-Overrides:
- components:
- nodejs-0.10
- web_proxy
Endpoints:
- Private-IP-Name: IP
Private-Port-Name: PORT
Private-Port: 8080
Public-Port-Name: PROXY_PORT
Mappings:
- Frontend: ""
Backend: ""
Options: { websocket: true }
- Frontend: "/health"
Backend: ""
Options: { health: true }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment