Local build support
Whenever you make changes to your buildspec.yml
file, you have to commit it to the repository and start the CodeBuild job. This creates a lot of overhead for developers and increases the build minute costs for projects. To overcome this, CodeBuild supports local builds through CodeBuild agents. To set up your local environment to test the buildspec.yml
file, implement the following steps:
- As a first step, you need to download the Docker image for the CodeBuild runtime selected for your build project in the previous section. You can pull these images from the AWS Docker registry as shown below or you can build these images yourself by cloning the source from the AWS CodeBuild Git repository at https://github.com/aws/aws-codebuild-docker-images.git. Here, we are focusing on using the existing Docker image. To install Docker locally, follow the instructions from Appendix, Docker Desktop Installation, where we have provided a step-by-step guide. Execute the...