Sign inSign up

useltmann/jenkins-slave-nodejs

By useltmann

Updated over 8 years ago

an image with nodejs built for use as jenkins-build-node

Image
0

1.7K

useltmann/jenkins-slave-nodejs repository overview

jenkins-slave-nodejs

what it does

This image can be started as jenkins build-node. In the jenkins-webfrontend, just

  • add a new node
  • label it according to the jobs it has to build and adjust its settings to your needs
  • set the startmethod to start agent by executing command on master-node
  • set the start command to something like the following:
docker run --rm -i -v /data/docker/jenkins-slave-nodejs/home:/home/node:z -v /data/docker/jenkins-slave-nodejs/workspace:/jenkins:Z docker.io/useltmann/jenkins-slave-nodejs

this starts a container from this image and binds two folders from the docker-host to the container

whats inside

  • bases on debian-jessie, installed openjdk-8-jre from jessie-backports
  • exposes port 3000, use it or not
  • defines two volumes, bind them to your docker-host for reuse upon container-runs:
    • /home/node will be the home-folder of the task running user
    • /jenkins will be the path where jenkins put the workspace
  • contains slave-jar, downloaded from https://jenkins-host/jnlpJars/slave.jar
  • start.sh ownes /home/node and /jenkins to user node and starts the slave.jar as user node

Tag summary

Content type

Image

Digest

Size

311.4 MB

Last updated

over 8 years ago

docker pull useltmann/jenkins-slave-nodejs