Skip to content

Instantly share code, notes, and snippets.

@connyay
Created October 15, 2014 13:50
Show Gist options
  • Save connyay/694139c6ddecb7272cf3 to your computer and use it in GitHub Desktop.
Save connyay/694139c6ddecb7272cf3 to your computer and use it in GitHub Desktop.
Name: node-diy
Cartridge-Short-Name: NODEDIY
Display-Name: Node DIY
Description: "Node.js cartridge that lets you take the wheel"
Version: '0.10.32'
Source-Url: https://github.com/connyay/openshift-node-diy.git
License: "Apache v2"
License-Url: https://github.com/connyay/openshift-node-diy/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_NODEDIY_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_NODEDIY_PORT
Type: environment
Description: "Internal port to which the web-framework binds to."
- Key: OPENSHIFT_NODEDIY_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"
- node-diy
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