vintagesucks / openshift-iojs

io.js cartridge for OpenShift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This project is no longer maintained. PRs will be accepted.

io.js cartridge for OpenShift

Looking for node.js v4?

See connyay/openshift-node4

Usage

rhc create-app <app name> https://raw.githubusercontent.com/connyay/openshift-iojs/master/metadata/manifest.yml

Example App

There is an example express application that uses this cartridge that can be found here: connyay/express-openshift-iojs.

Common pitfalls are:

  1. Build hook
  2. Port & IP config

What this cartridge provides out of the box

  1. io.js (latest stable currently 3.3.0)
  2. npm (latest stable currently 2.13.3)
  3. grunt
  4. gulp
  5. forever
  6. bower

What this cartridge does out of the box

Not much.

  1. Installs io.js
  2. Installs grunt, gulp, bower, and forever globally (specified by $OPENSHIFT_NPM_GLOBALS)
  3. Allows the user to manually install required dependencies (in a build action_hook). An example of this can be found here
  4. Runs npm start if package.json is found in repo directory (log is written to $OPENSHIFT_IOJS_LOG_DIR)

Note

For now I just dropped the contents of the iojs-v3.3.0.tar.xz here. Once io.js stabalizes I will move to resolving the latest stable and downloading on the gear.

Thanks!

These repos helped out a ton while developing this cartridge.

  1. engineersamuel/openshift-origin-cartridge-nodejs
  2. wshearn/openshift-origin-cartridge-nodejs
  3. ramr/nodejs-custom-version-openshift
  4. heroku/heroku-buildpack-nodejs

About

io.js cartridge for OpenShift

License:Apache License 2.0


Languages

Language:C 78.7%Language:C++ 18.6%Language:Groff 1.4%Language:Objective-C 1.1%Language:Shell 0.2%Language:JavaScript 0.0%Language:HTML 0.0%