公司要搞持续化部署,所有人都是两眼一抹黑。
目前进展是,所有人提交代码到GitLab,剩下的全都自动化。
已经准备好的服务器:GitLab,Jenkins
开发都是php或js或类似免编译的,所以不需要编译环境。
目前我大致搞清楚是:
→ GitLab 代码提交
→(web hook 去触发Jenkins)
→ Jenkins 自动clone、复制
→(代码与nginx、php-fpm等打包,如果有要编译的就编译。最终生成docker images)
→ ……(这之后不知道该干啥了)
→
就是在生成 docker image 之后,还不确定接下来干啥,我看网上有资料,需要再准备一台 Docker registry 吗?之后手动去取这个image部署。
还是说应该直接把 image 部署到测试用服务器上?
还是说既要有 Docker registry ,也要自动化部署新生成的 docker ?
高洛峰2017-04-25 09:05:03
The difficulties have been solved. The only problem is the display of results. If you don’t understand your docker, tell us about ours, java Web, android App, h5, ETL, etc. We have two main lines for the web backend. The dev branch push compiles and deploys the web container for the master to confirm that the interface meets the requirements. Similarly, the master branch is merged, compiled and deployed for use by the h5 app, and the web release package is placed on the file server for implementation personnel. Other projects only compile and package and provide download addresses.