pd109
pd109

Reputation: 365

Installing dependencies for running files in AWS Codebuilder

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.

Upvotes: 1

Views: 414

Answers (1)

Unsigned
Unsigned

Reputation: 9916

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.

Upvotes: 2

Related Questions