A Jenkins Docker image with Docker and Node.js native installation. Based on the official Jenkins.
See the cf-create-group.sh script
No additional plugins are installed, that you have to do yourself. For npm and Docker the following plugins are needed:
- [CloudBees Docker Build and Publish plugin] (https://github.com/jenkinsci/docker-build-publish-plugin/blob/master/README.md)
- [NodeJS plugin] (http://wiki.jenkins-ci.org/display/JENKINS/NodeJS+Plugin)
The image comes with nvm installed in /usr/local/nvm
Nvm can be used to install different versions of Node.js
Currently it is 0.12.7 in /usr/local/nvm/versions/node/v0.12.7
Add this as a NodeJS installation in Manage Jenkins.
In your jobs you can then check the "Provide Node & npm bin/ folder to PATH" if you want to use npm in a shell script build step.