使用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地址

猜你喜欢

转载自www.cnblogs.com/yjb007/p/9671045.html