aws-samples / aws-samples/sagemaker-studio-image-build-cli

[Feature Request] Add support for cache usage

Open
#29 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
59
Forks
26
PR merge metrics
No merged PRs in 30d

Description

It would be great if we could manipulate CodeBuild create_project's cache argument so that builds take significantly less time. This is specially painful when developing container, where minor corrections/iterations can take 5-10 mins each.

CodeBuild supports different options for cache usage that can be indicated as an argument (`cache`) in the `create_project` method of the boto3 codebuild client (https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/codebuild/client/create_project.html)

```
...
cache={
'type': 'NO_CACHE'|'S3'|'LOCAL',
'location': 'string',
'modes': [
'LOCAL_DOCKER_LAYER_CACHE'|'LOCAL_SOURCE_CACHE'|'LOCAL_CUSTOM_CACHE',
]
},
...
```

We could leverage this argument to further optimize codebuild integration with sagemaker.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.