使用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地址
posted @ 2018-09-18 19:57  灰色渡鹤影  阅读(179)  评论(0编辑  收藏  举报