20170320-Jenkins-Docker to Deploy
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了20170320-Jenkins-Docker to Deploy相关的知识,希望对你有一定的参考价值。
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的主要内容,如果未能解决你的问题,请参考以下文章
如何求解:T(n) = T(n/2) + T(n/4) + T(n/8) + (n)