Change default CodeBuild Project build container to version 4 for faster codebuild builds
See original GitHub issueShort Description
Change default CodeBuild Project build container to version 4
Use Case
When creating a codebuild project, the default project buildimage is Linux Standard v1.0. Because AWS only caches latest versions of containers, in this case version 4, a CodeBuild build with the default container version 1, the provision time takes up to 4/5 minutes instead of seconds.
Proposed Solution
Change default BuildEnvironment.LinuxBuildImage.STANDARD_1_0 to version 4 => BuildEnvironment.LinuxBuildImage.STANDARD_4_0
found in aws-cdk/packages/@aws-cdk/aws-codebuild/lib/project.ts
/**
* Build environment to use for the build.
*
* @default BuildEnvironment.LinuxBuildImage.STANDARD_1_0
*/
This is a 🚀 Feature Request
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Build caching in AWS CodeBuild
Source cache mode caches Git metadata for primary and secondary sources. After the cache is created, subsequent builds pull only the change between...
Read more >Improve the Performance of Gradle Builds
If the change improved build times, make it permanent. If you don't see an improvement, remove the change and try another. Update versions....
Read more >Build and share Docker images using AWS CodeBuild and ...
The Buildspec section tells CodeBuild where to find the buildspec.yml. The default will be in the top directory of the GitHub repository, but ......
Read more >AWS CodeBuild - Towards AWS
We can associate AWS CodeCommit, GitHub, BitBucket, or AWS S3 with the AWS CodeBuild project. After the source code provider and the repository...
Read more >Build Applications Locally Using AWS CodeBuild - YouTube
You just specify the location of your source code, choose your build settings, and CodeBuild runs build scripts for compiling, testing, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can assume a Role in your buildspec. The Role of the Project needs the correct permissions.
You’re putting
environment
in the wrong place (you put it in the buildspec, while it’s a property ofProject
, like I linked to above).