- 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.
推薦閱讀
- Learning Single:page Web Application Development
- Boost.Asio C++ Network Programming(Second Edition)
- Beginning C++ Game Programming
- Vue.js 3.0源碼解析(微課視頻版)
- Learning Apache Mahout Classification
- Modular Programming in Java 9
- SQL Server從入門到精通(第3版)
- Unity 2018 Shaders and Effects Cookbook
- Building Wireless Sensor Networks Using Arduino
- Django 3.0應用開發詳解
- SciPy Recipes
- Go語言開發實戰(慕課版)
- Training Systems Using Python Statistical Modeling
- WildFly Cookbook
- Java高級程序設計