码迷,mamicode.com
首页 > 其他好文 > 详细

jenkins-不能启动

时间:2019-03-06 00:34:03      阅读:187      评论:0      收藏:0      [点我收藏+]

标签:.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

 

jenkins-不能启动

标签:.repo   nop   init   centos   .gz   div   span   lin   tab   

原文地址:https://www.cnblogs.com/effortsing/p/10480723.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!