Frank Zinner bio photo

Frank Zinner

I'm a passionated senior software developer ...

Twitter Facebook LinkedIn Github Xing

Running jenkins with vagrant and docker!

On the jenkins website you can find a brief introduction on how you can run jenkins with docker. The repository for this to use is this here zaiste/jenkins.

That one gives you Ubuntu 13.10 with plugins for Git, Git-Hub, ssh, scm and a post-build task.

This here is the used dockerfile:

FROM ubuntu:13.10
MAINTAINER Zaiste <oh [at] zaiste.net>
RUN apt-get update
RUN apt-get -y install wget git
RUN apt-get install -q -y openjdk-7-jre-headless && apt-get clean
RUN echo "deb http://pkg.jenkins-ci.org/debian binary/" > /etc/apt/sources.list.d/jenkins.list
RUN wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | apt-key add -
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y jenkins
VOLUME /var/lib/jenkins
ENV JENKINS_HOME /var/lib/jenkins
EXPOSE 8080
ADD run /usr/local/bin/run
RUN chmod +x /usr/local/bin/run
CMD /usr/local/bin/run