标签:.repo nop init centos .gz div span lin tab
FROM centos RUN docker run -tdi --privileged centos init ADD jdk-8u171-linux-x64.tar.gz /usr/local ADD apache-maven-3.5.4-bin.tar.gz /usr/local/ ENV MAVEN_HOME=/usr/local/apache-maven-3.5.4 ENV PATH=$JAVA_HOME/bin:$MAVEN_HOME/bin:$PATH COPY jenkins-2.138.1-1.1.noarch.rpm /usr/local/ RUN yum install wget -y RUN wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo RUN rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key RUN yum install jenkins -y RUN cd /usr/local #RUN rpm -ivh jenkins-2.138.1-1.1.noarch.rpm RUN sed ‘/\/usr\/bin\/java/a /usr/local/jdk1.8.0_171/bin/java‘ /etc/rc.d/init.d/jenkins RUN echo "jenkins ALL=NOPASSWD: ALL" >> /etc/sudoers USER jenkins EXPOSE 8080 EXPOSE 5000 #RUN systemctl start jenkins
标签:.repo nop init centos .gz div span lin tab
原文地址:https://www.cnblogs.com/effortsing/p/10480723.html