0

I am trying to run test files on AWS codebuilder pulling from a CodeCommit but the files have many dependencies that need to be installed. Many of them are included in Anaconda but I am worried that this will slow down the build speed considerably if I install anaconda every time because of the size of anaconda. Is there a way to efficiently install a list of dependencies or do I have to manually do it every time in the install portion of the buildspec? or is there a way that I could install the dependencies once rather than every time I build.

pd109
  • 335
  • 2
  • 3
  • 12

1 Answers1

1

You can build your own Docker image containing your dependencies (e.g., Anaconda) pre-installed. This Docker image can then be referenced when creating a project.

The AWS DevOps blog has a step by step example of building a custom Docker environment for CodeBuild.

Unsigned
  • 9,640
  • 4
  • 43
  • 72