Skip to content

msgilligan/node-clickstack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js support on CloudBees.

ClickStacks and CloudBees

This should work with standard node.js apps, but as it is a WIP - please do ask any questions on https://groups.google.com/forum/#!forum/cloudbees-dev as we flesh it out.

This repo is for people who want to extend/enhance support on CloudBees. Users of node.js apps can simply fire up the node.js clickstart and be happy.

If this is you, read on:

ClickStarts are used by specifying the application type when you deploy an app. You can specify the stack to use either by name, or and -RPLUGIN.SRC.= - this is called a "remote" plugin and is useful for getting the latest version of things.

This stack uses npm to install any required packages, and expects applications to be packaged up as a zip.

Usage

(assuming you aren't using the ClickStart here: https://github.com/CloudBees-community/nodejs-clickstart)

Get a sample app (eg sampleapp from this repo) cd sampleapp zip -r ../app.zip *

bees app:deploy -a playground/node -t node -RPLUGIN.SRC.node=https://s3.amazonaws.com/cloudbees-downloads/clickstack/node-clickstack.zip ../app.zip

You can see this running at node.playground.cloudbees.net

Notes

It looks for a main.js by default. You can set a config variable of "main_js" to override this. If a package.json is present, it will install the packages via npm.

Updating this stack

For example: update the node.js binary in this repo. Run: make package Upload the resultant zip, use it.

About

Node.js container support for cloudbees

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published