首页 > 其他 > 详细

20170320-Jenkins-Docker to Deploy

时间:2017-03-23 13:41:11      阅读:190      评论:0      收藏:0      [点我收藏+]

1. Install Docker on CentOS7

yum update
yum install docker
docker    version
systemctl  start docker.service
systemctl  enable docker.service
docker pull jenkins
docker images jenkins

2. Install Docker on CentOS7
docker run --name myjenkins -p 8080:8080 -v /var/jenkins_home jenkins
docker run -i -t -p 8080:8080 jenkins /bin/bash
- Start the jenkins:
java -jar /usr/share/jenkins/jenkins.war & 

- Generate the key:
ssh-keygen -t rsa -C jenkins-docker
- Configure the key in the Github:
- Configure the key in the Jenkins
- Create the free style job

3. Configure the mail notification
Refer to:
http://www.cnblogs.com/zz0412/p/jenkins02.html


20170320-Jenkins-Docker to Deploy

原文:http://www.cnblogs.com/XilingCai/p/6590307.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!