官术网_书友最值得收藏!

Build, release, run

The fifth factor is related to the first, second, and the third factors. It's about how a piece of code gets built, is released (packed), and runs in the target execution environment.

The preceding steps are called stages and represent the life cycle of your application. Each stage has its own specific role and isn't related to any other stage, and all together, these stages form a deployment.

So, to perform a deployment, we need the following:

  • We need to build our source code pulled from a repository by identifying the code and its version. This is done by fetching dependencies and compiling the code (the first and second factors).
  • To release the previous build, by identifying it by its name and version, we need to attach the appropriate configuration settings (the third factor). Every release has its own unique version (date, incrementing numbers, code name, and so on).
  • To run the released build into the execution environment, we need to launch a process that grabs the previous release, by identifying it through name and version.

These stages can and should be performed by tools provided by the cloud platform. Tools such as Jenkins and GitLab continuous integration (CI) are great for such tasks. More details can be found in Chapter 9, Deployments.

Long story short, what you build is what you release is what you run.

主站蜘蛛池模板: 安化县| 剑河县| 龙口市| 琼海市| 临潭县| 昌黎县| 汾阳市| 疏勒县| 晋宁县| 南投县| 兴业县| 内乡县| 宜阳县| 长乐市| 桐城市| 贵州省| 新泰市| 射洪县| 隆安县| 衡山县| 讷河市| 敦化市| 南投市| 临清市| 叶城县| 伊吾县| 宜丰县| 黎平县| 弥勒县| 亳州市| 吴忠市| 卢湾区| 庆元县| 东安县| 静海县| 宁海县| 辉县市| 海宁市| 拉萨市| 当阳市| 云梦县|