Created
August 7, 2013 16:56
-
-
Save kylewelsby/6175963 to your computer and use it in GitHub Desktop.
Proposed docker module syntax
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
# vi: expandtab filtype=dockerfile | |
FROM base | |
MAINTAINER Lee Hambley "[email protected]" | |
# Debian isn't too smart, there's no tty dude! | |
ENV DEBIAN_FRONTEND noninteractive | |
# Update Apt, never a bad move | |
RUN apt-get update | |
# Install Supervisord | |
RUN apt-get install -y python-setuptools | |
RUN easy_install supervisor | |
# Copy Supervisord files into the image. | |
ADD supervisord.conf /etc/supervisord.conf | |
ADD supervisord.d /etc/supervisord.d | |
# Add a policy-rc.d, this stops MySQL | |
# trying to start in postinst from | |
# invoke-rc.d | |
ADD policy-rc.d /usr/sbin/policy-rc.d | |
# Install MySQL | |
RUN apt-get install -q -y mysql-server | |
# # Install OpenJDK | |
# RUN apt-get install -q -y openjdk-7-jre-headless | |
# Pull Down Jenkins... | |
# ADD http://mirrors.jenkins-ci.org/war/latest/jenkins.war /root/jenkins.war | |
# RUN apt-get install wget -y | |
# RUN wget -q -O - http://pkg.jenkins-ci.org/debian-stable/jenkins-ci.org.key | sudo apt-key add - | |
# UN sh -c 'echo deb http://pkg.jenkins-ci.org/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list' | |
# RUN apt-get update | |
# RUN apt-get install jenkins -y | |
MODULE jenkins-Dockfile.module # this linking to a docker repository | |
# Pull down Jenkins plugins | |
RUN mkdir -p /data/jenkins/plugins | |
ADD http://updates.jenkins-ci.org/latest/build-with-parameters.hpi /data/jenkins/plugins/build-with-parameters.hpi | |
ADD http://updates.jenkins-ci.org/latest/ansicolor.hpi /data/jenkins/plugins/ansicolor.hpi | |
# Pull down the Jenkins Job definition | |
# ADD http://.....xml /data/jenkins/jobs/integration_tests/config.xml | |
# Environmental Variables | |
ENV JENKINS_HOME /data/jenkins | |
# Expose the standard Jenkins port, on the standard | |
# Jenkins port | |
EXPOSE 8080 | |
# Then start supervisord, this will start mysql | |
# and Jenkins for us | |
CMD ["/usr/local/bin/supervisord", "-c", "/etc/supervisord.conf"] |
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
MAINTAINER Somebody Else "[email protected]" | |
ADD http://mirrors.jenkins-ci.org/war/latest/jenkins.war /root/jenkins.war | |
RUN apt-get install wget -y | |
RUN wget -q -O - http://pkg.jenkins-ci.org/debian-stable/jenkins-ci.org.key | sudo apt-key add - | |
UN sh -c 'echo deb http://pkg.jenkins-ci.org/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list' | |
RUN apt-get update | |
RUN apt-get install jenkins -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment