- 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.
推薦閱讀
- Web程序設(shè)計及應(yīng)用
- 極簡算法史:從數(shù)學(xué)到機器的故事
- C語言程序設(shè)計實踐教程(第2版)
- 程序設(shè)計與實踐(VB.NET)
- LabVIEW入門與實戰(zhàn)開發(fā)100例
- 自己動手寫Java虛擬機
- Java應(yīng)用開發(fā)與實踐
- PHP網(wǎng)絡(luò)編程學(xué)習(xí)筆記
- Visual Basic程序設(shè)計
- 第一行代碼 C語言(視頻講解版)
- 創(chuàng)意UI:Photoshop玩轉(zhuǎn)APP設(shè)計
- Android應(yīng)用開發(fā)實戰(zhàn)(第2版)
- C#面向?qū)ο蟪绦蛟O(shè)計(第2版)
- Solr權(quán)威指南(下卷)
- Visual C++程序設(shè)計全程指南