Public | Automated Build

Last pushed: 3 years ago
FROM ubuntu:14.04 MAINTAINER Per-Gustaf Stenberg USER root #Installing core-stuff RUN apt-get update && apt-get -y install software-properties-common python git #Install Java8 RUN add-apt-repository ppa:webupd8team/java && apt-get update RUN echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections RUN echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections RUN apt-get -y install oracle-java8-installer #Install Jenkins RUN wget -q -O - | sudo apt-key add - RUN echo deb binary/ >> /etc/apt/sources.list RUN apt-get update && apt-get install -y jenkins RUN mkdir -p /var/jenkins_home && chown -R jenkins /var/jenkins_home #Add jenkins to dockergroup RUN usermod -G root jenkins && usermod -G users jenkins USER jenkins # VOLUME /var/jenkins_home - bind this in via -v if you want to make this persistent. ENV JENKINS_HOME /var/jenkins_home # for main web interface: EXPOSE 8080 CMD ["/usr/bin/java", "-jar", "/usr/share/jenkins/jenkins.war"]
Source Repository