Skip to content

peer2p/node-clickstack

 
 

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=STACKURL ../app.zip

STACKURL can be found (use the latest) from https://developer.cloudbees.com/bin/view/RUN/ClickStack

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.

  • fork this repo (maybe)
  • make publish

This will make a zip of the stack, and push it to a repository via your cloudbees credentials. You then use the resulting URL in the STACKURL above.

About

Node.js container support for cloudbees

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published