Wednesday, 3 May 2017


                          



 Create jenkins server with ubuntu machine on docker


FROM ubuntu:latest
#add storage 
VOLUME /ubuntu1
#Oracle Java8 install
RUN apt-get update
RUN apt-get install software-properties-common -y
RUN apt-get update
RUN add-apt-repository -y ppa:webupd8team/java
RUN apt-get update
RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections
RUN apt-get install -y oracle-java8-installer
RUN apt-get install sudo
#Jenkins install
RUN wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | apt-key add -
RUN sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
RUN apt-get update
RUN apt-get install -y jenkins

#Zip support install
RUN apt-get update
RUN apt-get -y install zip

#Restart jenkins server
RUN service jenkins start

EXPOSE 8080