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

How it works...

Let's first see how it works while starting the build manually. The following diagram is the reference of explanation:

Firstly, we need a source repository; it can be either CodeCommit, GitHub, or s3. BitBucket is also supported now. Post that, we have to set up the environment where the build will take place. The environment will be Docker image. Now, here, we have two types of images-one is managed by AWS, which will runtime as Linux platform and have the necessary package of Java, Android, Python, Go, Ruby, and so on, and the other image will be given by us, which will be the custom image. For the custom image, we have to pass the registry detail as well, that is, from where they will pull the Docker image.

In the environment setup, you will find one parameter called Build Specification, where you can enter your build command or specify the buildspec.yml file (build step file). After that, you have to set up the artifacts location, mostly AWS S3, where you can put the build files.

When you insert the updated source code in CodeCommit and trigger CodeBuild to build the project, it will pull the latest code from the repository and launch a container with the platform and prepackaged application, which means that the image of Java with Maven will run. In this environment, the application code will be built, using the Buildspecific file or Build commands mentioned in the Build Specification. Once the build happens, then it will put the artifacts to the S3 bucket.

主站蜘蛛池模板: 射洪县| 开平市| 东兰县| 荣成市| 石台县| 莱芜市| 中超| 北川| 凤冈县| 会泽县| 全南县| 吉林省| 乐至县| 高密市| 顺平县| 荆州市| 嵩明县| 绍兴县| 当雄县| 大洼县| 钟山县| 吉林市| 鱼台县| 嫩江县| 慈溪市| 五指山市| 奉化市| 尤溪县| 大足县| 兰州市| 通化县| 南江县| 连平县| 定西市| 突泉县| 抚顺县| 萝北县| 闸北区| 成武县| 安丘市| 凌源市|