- 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.
推薦閱讀
- PHP動態網站程序設計
- R語言經典實例(原書第2版)
- C語言程序設計案例教程(第2版)
- Building a Game with Unity and Blender
- Access 數據庫應用教程
- 深入理解Java7:核心技術與最佳實踐
- Lua程序設計(第4版)
- Apache Karaf Cookbook
- Kotlin Standard Library Cookbook
- Clojure Reactive Programming
- 深入剖析Java虛擬機:源碼剖析與實例詳解(基礎卷)
- 零基礎學Kotlin之Android項目開發實戰
- C++ Application Development with Code:Blocks
- 從零開始學Android開發
- Web開發新體驗