使用Docker快速搭建Jenkins

Posted yjb007

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了使用Docker快速搭建Jenkins相关的知识,希望对你有一定的参考价值。

1.配置docker swarm环境

参考:https://www.cnblogs.com/yjb007/p/9669908.html

2.安装Jenkins

yum update -y nss curl libcurl
mkdir -p /soft/
cd /soft/
git clone https://github.com/yjb007/jenkins.git
cd jenkins
sh build.sh
mkdir -p /srv/volume/jenkins
sh service.sh

3.访问Jenkins: http://jenkins.local.com:8080

10.1.1.238 jenkins.local.com
#需要在hosts文件中绑定域名IP地址

以上是关于使用Docker快速搭建Jenkins的主要内容,如果未能解决你的问题,请参考以下文章

使用Docker快速搭建Jenkins

快速搭建Jenkins集群

jenkins + gitlab 快速搭建(docker-compose) 时间,时区 同步

快速搭建Jenkins集群

Gitlab+Jenkins+Docker+Harbor+K8s集群搭建CICD平台

Docker实现SpringBoot项目的快速构建