- Mastering Microservices with Java 9(Second Edition)
- Sourabh Sharma
- 162字
- 2021-07-02 21:54:43
Microservices build pipeline
Microservices could also be built and tested using the popular CI/CD tools such as Jenkins, TeamCity, and so on. It is very similar to how a build is done in a monolithic application. In microservices, 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 Dev, QA, Stage, and so on
- Integration and Functional test execution
- Any other steps
Then, release-build triggers that change the SNAPSHOT or RELEASE version in pom.xml (in case of Maven) build the artifacts as described in the normal build trigger. Publish the artifacts to the artifacts repository. Tag this version in the repository. If you use the container image then build the container image as a part of the build.
推薦閱讀
- Advanced Quantitative Finance with C++
- 大話PLC(輕松動漫版)
- 騰訊iOS測試實踐
- 算法訓練營:入門篇(全彩版)
- 信息安全技術
- Java持續交付
- Elasticsearch for Hadoop
- The Complete Coding Interview Guide in Java
- jQuery Mobile移動應用開發實戰(第3版)
- Node.js:來一打 C++ 擴展
- Java語言程序設計教程
- Citrix XenServer企業運維實戰
- Software Development on the SAP HANA Platform
- 關系數據庫與SQL Server 2012(第3版)
- 城市信息模型平臺頂層設計與實踐