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

  • AWS Automation Cookbook
  • Nikit Swaraj
  • 261字
  • 2021-07-02 23:00:41

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.

主站蜘蛛池模板: 九江市| 陆丰市| 沽源县| 乳源| 孝昌县| 梅河口市| 房山区| 柘城县| 淳安县| 济源市| 绥江县| 乐东| 东台市| 来凤县| 米易县| 满洲里市| 蒙阴县| 青海省| 栖霞市| 九寨沟县| 齐齐哈尔市| 林周县| 奇台县| 青海省| 崇信县| 揭阳市| 云和县| 翼城县| 略阳县| 大竹县| 玉林市| 延津县| 青田县| 新平| 西安市| 临颍县| 抚远县| 鹤壁市| 龙陵县| 丹阳市| 那坡县|