Code Monkey home page Code Monkey logo

jenkins-docker's Introduction

jenkins-docker

Jenkins Docker image that adds installation of Git, Maven, Docker, default-jdk and Node.js, plus the Jenkins Git SCM and Docker build step plugins.

Run

docker run -d \
  -p 8080:8080 \
  --restart=always \
  -v /home/ubuntu/jenkins:/var/jenkins_home \
  --add-host docker:172.31.9.91 \ # Replace with your docker host IP address
  --name jenkins \
  carboni/jenkins
  • runs a container;
  • maps the host port 8080 to the container port 8080;
  • sets an "always" restart policy;
  • maps the host folder /home/ubuntu/jenkins into the container as the Jenkins home folder; and
  • adds the Docker host to the container /etc/hosts file so that Jenkins can access the Docker API
  • names the image jenkins.

Setup

To set up MAVEN_HOME and the Docker remote API:

  • Manage Jenkins
  • Configure System
  • (Keep Git default)
  • Add Maven, untick “install automatically”, MAVEN_HOME: /usr/share/maven
  • Set Docker URL to http://docker:2375 (see --add-host above)

And start adding your jobs.


David

jenkins-docker's People

Contributors

davidcarboni avatar

Watchers

James Cloos avatar

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.