Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement caching for modules pulled from registries #237

Merged
merged 2 commits into from
Nov 11, 2023
Merged

Conversation

stefanprodan
Copy link
Owner

This PR introduces local caching for module layers based on OCI digests. Cashing is meant to reduce network traffic for sequential pull operations and will speed up applying bundles which refer to modules with identical layers.

CLI changes:

  • Add --cache-dir global flag with the default location set to $HOME/.timoni/cache
  • Allow disabling caching with TIMONI_CACHING=false env var

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
@stefanprodan stefanprodan added enhancement New feature or request area/cli CLI related issues and pull requests area/oci OCI related issues and pull requests labels Nov 1, 2023
- Add `--cache-dir` flag with default location set to `$HOME/.timoni/cache`
- Allow disabling caching with `TIMONI_CACHING=false` env var

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
@stefanprodan stefanprodan marked this pull request as ready for review November 2, 2023 21:35
@stefanprodan stefanprodan merged commit d8c6a54 into main Nov 11, 2023
4 checks passed
@stefanprodan stefanprodan deleted the mod-cache branch November 11, 2023 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli CLI related issues and pull requests area/oci OCI related issues and pull requests enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant