Uncategorized

Production Ready Jenkins 2.0 in Two Steps with Docker

jenkins-docker

This blog post will show you how to run production-ready Jenkins with 2 steps.  We have been using this for over six months with great success!  Just a note, you can only run this on a machine that has Docker installed on it.

We are going to use the official image from Jenkins located here. The following scripts can also be found in this Github repository: https://github.com/sekka1/jenkins-docker

First, we will create the init upstart script so that when the system boots, reboots, or if the container fails, it will restart this process just like any other server processes you run.

Step 1 – Write the start configuration file

Using your favorite text editor, open this file as a root user and edit /etc/init/jenkins.conf to add this content:

This code accomplishes several things:

  1. Starts this service when the system boots and shuts it down when the system goes down
  2. Logs the starting…

View original post 261 more words

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s