Skip to content

itsccn/deploy-jenkins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

基于docker && docker-compose 快速部署jenkins

快速开始

sudo git clone https://github.com/itsccn/deploy-jenkins.git && cd deploy-jenkins && chmod +x setup.sh && ./setup.sh

修改映射端口

修改 docker-compose.yaml ports部分端口映射,左边宿主机端口,右边容器端口,执行 docker-compose up -d

重启

执行 docker-compose restart

升级

修改 docker-compose.yaml 镜像版本即可,执行 docker-compose up -d,最新版本参照 https://hub.docker.com/r/jenkins/jenkins,

迁移

打包 jenkins目录 -> tar -zcvf jenkins.tar jenkins/ 移动到另一台服务器 deploy-jenkins 目录下,运行 tar -zxvf jenkins.tar && ./setup.sh

测试

ubuntu-latest-test

About

快速部署 Jenkins

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages