🎉 欢迎访问本站,如有问题欢迎 留言
ci jenkins github

ci jenkins github

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

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