Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/connyay/openshift-iojs

io.js cartridge for OpenShift
https://github.com/connyay/openshift-iojs

Last synced: 3 months ago
JSON representation

io.js cartridge for OpenShift

Awesome Lists containing this project

README

        

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

# [io.js](https://iojs.org/) cartridge for [OpenShift](https://www.openshift.com/)

## Looking for node.js v4?
See [connyay/openshift-node4](https://github.com/connyay/openshift-node4)

## Usage

`rhc create-app 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](https://github.com/connyay/express-openshift-iojs).

Common pitfalls are:

1. [Build hook](https://github.com/connyay/express-openshift-iojs/blob/master/.openshift/action_hooks/build)
2. [Port & IP config](https://github.com/connyay/express-openshift-iojs/blob/master/app.js#L6-L7)

What this cartridge provides out of the box
---
1. **io.js** ([latest stable](http://semver.io/iojs/stable) currently 3.3.0)
2. **npm** (latest stable currently 2.13.3)
3. **[grunt](https://www.npmjs.com/package/grunt-cli)**
4. **[gulp](https://www.npmjs.com/package/gulp)**
5. **[forever](https://www.npmjs.com/package/forever)**
6. **[bower](https://www.npmjs.com/package/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](http://openshift.github.io/documentation/oo_user_guide.html#action-hooks)). An example of this can be found [here](template/.openshift/action_hooks/build)
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](bin/iojs). 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](https://github.com/engineersamuel/openshift-origin-cartridge-nodejs)
2. [wshearn/openshift-origin-cartridge-nodejs](https://github.com/wshearn/openshift-origin-cartridge-nodejs)
3. [ramr/nodejs-custom-version-openshift](https://github.com/ramr/nodejs-custom-version-openshift)
4. [heroku/heroku-buildpack-nodejs](https://github.com/heroku/heroku-buildpack-nodejs)