- Mastering Microservices with Java
- Sourabh Sharma
- 163字
- 2021-07-02 13:03:29
Microservices build pipeline
Microservices can be built and tested using popular CI/CD tools, such as Jenkins and TeamCity. This is done very similarly to how a build is done in a monolithic application. In a microservices architecture, each microservice is treated like a small application.
For example, once you commit the code in the repository (SCM), CI/CD tools trigger the build process:
- Cleaning code
- Code compilation
- Unit test execution
- Contract/acceptance test execution
- Building the application archives/container images
- Publishing the archives/container images to repository management
- Deployment on various delivery environments such as development, quality assurance, and staging environments
- Integration and functional test execution
- Any other steps
Then, release-build triggers, which change the SNAPSHOT or RELEASE version in pom.xml (in the case of Maven), build the artifacts as described in the normal build trigger, publish the artifacts to the artifacts repository, and tag the version in the repository. If you use the container image, then build the container image as a part of the build.
推薦閱讀
- iOS Game Programming Cookbook
- ASP.NET Web API:Build RESTful web applications and services on the .NET framework
- Intel Galileo Essentials
- JIRA 7 Administration Cookbook(Second Edition)
- oreilly精品圖書:軟件開發(fā)者路線圖叢書(共8冊(cè))
- Full-Stack Vue.js 2 and Laravel 5
- Building an RPG with Unity 2018
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)案例教程
- 軟件工程與UML案例解析(第三版)
- Angular Design Patterns
- Java高并發(fā)編程詳解:深入理解并發(fā)核心庫
- Python應(yīng)用與實(shí)戰(zhàn)
- C語言程序設(shè)計(jì)與應(yīng)用實(shí)驗(yàn)指導(dǎo)書(第2版)
- JavaScript前端開發(fā)基礎(chǔ)教程
- 算法超簡(jiǎn)單:趣味游戲帶你輕松入門與實(shí)踐