朱争光

一点点攒起我的那片天

  • 主页
  • 文章分类
  • 标签
  • 我

朱争光

一点点攒起我的那片天

  • 主页
  • 文章分类
  • 标签
  • 我

ci jenkins github

2016-05-27

##jenkins install
复制下面的代码,保存为docker-compose.yml
然后docker-compose up -d
(docker和docker-compepose安装见:http://get.daocloud.io/)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
jenkins:
image: jenkins
privileged: true
user: root
volumes:
- /data/jenkins:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
- /usr/bin/docker:/usr/bin/docker
ports:
- 80:8080
- 50000:50000
registry:
image: registry
environment:
- STORAGE_PATH=/registry
volumes:
- registry-stuff:/registry
ports:
- "5000:5000"

##配置jenkins

https://www.cloudbees.com/blog/better-integration-between-jenkins-and-github-github-jenkins-plugin

docker-compose
mac nfs 共享
豫ICP备17013970号-1 | Copyright © daozzg.com 保留所有权利。2019 朱争光