Coder Social home page Coder Social logo

openshift-iojs's Introduction

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

openshift-iojs's People

Contributors

connyay avatar probins avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

openshift-iojs's Issues

rhc create-app <app name> http://tinyurl.com/OpenShiftIOJS doesn't work

rhc create-app drive http://tinyurl.com/OpenShiftIOJS
The cartridge 'http://tinyurl.com/OpenShiftIOJS' will be downloaded and installed

Application Options
-------------------
Domain:     mydomain123
Cartridges: http://tinyurl.com/OpenShiftIOJS
Gear Size:  default
Scaling:    no

Creating application 'drive' ...
Unable to complete the requested operation due to: No such file or directory - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <meta http-equiv="cache-control" content="max-age=0" /> <meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="-1" /> <meta http-equiv="pragma" content="no-cache" /> <meta http-equiv="refresh" content="1; url=https://raw.githubusercontent.com/connyay/openshift-iojs/master/metadata/manifest.yml"> <script type="text/javascript"> Date.now =
Date.now || function() { return +new Date; }; var tt=Date.now(); var ot,rt,lt,bt,et,dt,bkt,ast,tut,bct,aft; var tte=0,rte=0,lte=0,bte=0,ete=0,dte=0,bkte=0,aste=0,tute=0,bcte=0,afte=0; var t=new Image();

function ex() { u="https://raw.githubusercontent.com/connyay/openshift-iojs/master/metadata/manifest.yml"; var xl = document.createElement("script"); xl.src ="http://loadus.exelator.com/load/?p=360&j=d&g=002&id=59f97edbd09936e1785e81bc&turl="+encodeURIComponent(u);
xl.type = "text/javascript";xl.async = true; if(xl.addEventListener){xl.onload=function(){ete=Date.now()-et;}} else if(xl.readyState){xl.onreadystatechange=function(){if(xl.readyState=='loaded'){ete=Date.now()-et;}}} et=Date.now();document.body.appendChild(xl);}
function af() {var afp=new Image();afp.onload=function(){afte=Date.now()-aft;};aft=Date.now(); afp.src='http://go.affec.tv/map/tu/59f97edbd09936e1785e81bc';}
function bc() {var bcp=new Image();bcp.onload=function(){bcte=Date.now()-bct;};bct=Date.now(); bcp.src='http://clients.bluecava.com/data/pixel.png?p=793c6424-37d3-4d65-bfb4-4f60a0ddae5e&rn=59f97edbd09936e1785e81bc561058374'+tt;}
function tstu(){tute=Date.now()-tut;} function tu() {var tp=new Image();tp.onload=tstu;tp.onerror=tstu;tut=Date.now(); tp.src='http://d.turn.com/r/dd/id/L2NzaWQvMS9jaWQvMjU3MTk5MzYvdC8w/dpuid/59f97edbd09936e1785e81bc';}

function map() {tte=Date.now()-tt;t.src="http://tinyurl.com/tpdata/t3545lcetf?tte="+tte+"&lte="+lte+"&ete="+ete+"&bcte="+bcte+"&tute="+tute+"&afte="+afte;} function send()
{window.location="https:\/\/raw.githubusercontent.com\/connyay\/openshift-iojs\/master\/metadata\/manifest.yml";} window.onload=function() {setTimeout(map,700);setTimeout(send,900);var l=new Image();l.onload=function(){lte=Date.now()-lt;};
lt=Date.now();l.src='http://bcp.crwdcntrl.net/map/c=1488/tp=TINY/tpid=59f97edbd09936e1785e81bc'; bc();af();;tu();ex(); } </script> </head> <body style="background-color:grey"> <script type="text/javascript"></script><script type="text/javascript"></script></body></html>
Reference ID: 51d7866adf5bc5d3481f4dea96369256

Possible to upgrade to newer version of iojs?

More of a question than an issue. Readme mentions ramr/nodejs-custom-version-openshift which provides a technique for doing this with nodejs. Does this also work with this cartridge? I might be interested in upgrading to 3.0.0 if so.

Websockets

I'm having problems running websockets with this cartridge. Do yo know if its possible?

Cannot redeploy with my code

I used this cartridge to successfully create an application using rhc create-app myapp https://raw.githubusercontent.com/connyay/openshift-iojs/master/metadata/manifest.yml.

However once I commit and push my own code to OpenShift, nothing changes. I still have default welcome message.

I verified that my code is indeed pushed to OpenShift, my doing fresh git clone.

rhc deploy master -a drive also doesn't help, although seems to be working fine:

rhc deploy master -a drive
Deployment of git ref 'master' in progress for application drive ...
Enter passphrase for C:/Users/Sergiy Kyrylkov/.ssh/id_rsa:
CLIENT_MESSAGE: Stopping node
Building git ref 'master', commit 48d334e
Preparing build for deployment
Deployment id is b1672ecf
Activating deployment
CLIENT_MESSAGE: Starting node using npm start
Success

No permission to install forever globally

Hi:

This is awesome. But I tried and failed with no permission to create ~/.npm directory while openshift tries to run the install script to install forever globally. Any tips? Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.