A simple Dockerfile
Last active
December 20, 2015 03:49
-
-
Save christianberg/6066406 to your computer and use it in GitHub Desktop.
Example Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:precise | |
MAINTAINER Christian Berg <[email protected]> | |
RUN echo "deb http://archive.ubuntu.com/ubuntu precise-security main" > /etc/apt/sources.list.d/security.list | |
RUN apt-get update | |
RUN apt-get upgrade -y && apt-get clean | |
RUN apt-get install -y openjdk-6-jre && apt-get clean | |
RUN apt-get install -y git && apt-get clean | |
ADD http://mirrors.jenkins-ci.org/war/latest/jenkins.war /jenkins.war | |
ADD http://updates.jenkins-ci.org/latest/git.hpi /jenkins/plugins/git.hpi | |
ADD http://updates.jenkins-ci.org/latest/git-client.hpi /jenkins/plugins/git-client.hpi | |
ADD http://updates.jenkins-ci.org/latest/ssh-credentials.hpi /jenkins/plugins/ssh-credentials.hpi | |
ENV JENKINS_HOME /jenkins | |
CMD ["java", "-jar", "/jenkins.war"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment