jenkins-不能启动

Posted effortsing

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了jenkins-不能启动相关的知识,希望对你有一定的参考价值。

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-不能启动的主要内容,如果未能解决你的问题,请参考以下文章

Jenkins 启动不来的排查方法

jenkins 构建时不能自动结束的问题

从jenkinsfile启动包含vault文件引用的Ansible playbook

CentOS中Jenkins的下载安装配置与启动(图文教程)

部署在tomcat下面的jenkins启动了多个实例,界面访问报错

生产环境部署jenkins