-
Notifications
You must be signed in to change notification settings - Fork 991
Description
We are experiencing long provisioning times using the image aws/codebuild/amazonlinux2-x86_64-standard:1.0
I opened a support ticket and was told I "that CodeBuild service team confirmed that builds using image "aws/codebuild/amazonlinux2-x86_64-standard:1.0" can cause significant increase in the build time due to an internal change (they are in process of deprecating the image "aws/codebuild/amazonlinux2-x86_64-standard:1.0"). "
I am compiling .netcore2.1 for aws lambda (does not support 3.x yet).
I changed to "aws/codebuild/amazonlinux2-x86_64-standard:2.0" but that does not support the " runtime-versions" in the buildspec (specifically dotnet: 2.2).
It does seem to have .net core 3.x installed, but even with some trials of trying to build and test with "--framework netcoreapp2.1", I seemed to get painted into different corners.
Additionally I was told "One of the most common ways that the provisioning stage of a CodeBuild execution can be sped up is to enable Docker layer caching".
I don't see how using a Docker Layer Cache will speed up the PROVISIONING time and am hestitant to try to make this change as it would require quite a bit of change.
Once the build is "Provisioned" everything is very fast. But some of the Provisioning is taking 3-5 minutes whilst the rest of the phases are cumulative less than 90 seconds.
Can anyone confirmation or advise on the above?