1

I trying to run codebuild using my docker image for a build .Net framework application, but when i run the project it's failed in "DOWNLOAD_SOURCE" step with the message: "Build container found dead before completing the build. Build container died because it was out of memory, or the Docker image is not supported."

the source is codecommit . Compute type is 15 GB . docker image is the same as docker image here: [https://aws.amazon.com/blogs/devops/extending-aws-codebuild-with-custom-build-environments-for-the-net-framework/]
I've tried the same image with a lightweight project and it's work.

Any suggestions? there is a way to get more logs?

Thanks.

y.y
  • 11
  • 1
  • It looks like your image needs more memory than you have – Alejandro Galera Jun 19 '18 at 09:56
  • more than 15 GB memory? or you mean the docker image( i didn't use memory limit in my build ) – y.y Jun 19 '18 at 10:23
  • No, but docker has a default memory reservation. If you did `docker run` you could add option `--memory-reservation=8g`, because default are 2Gb. Maybe you should try to look up equivalent for AWS platform or where configure it. – Alejandro Galera Jun 19 '18 at 10:41
  • i using windows server and windows doesn't support memory reservation :( – y.y Jun 19 '18 at 11:32

1 Answers1

0

did you try setting the git-clone-depth to 1 to do a shallow clone? since the same image worked for a lightweight project.

Yong Tao
  • 296
  • 1
  • 3