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

Add pull-through cache for Docker Hub images #44

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

baixiac
Copy link
Member

@baixiac baixiac commented Jan 15, 2025

No description provided.

@baixiac baixiac requested a review from keyvaann January 15, 2025 12:57
@baixiac baixiac mentioned this pull request Jan 15, 2025
@baixiac baixiac force-pushed the pull-through-cache branch from bacf81e to af4dcf0 Compare January 16, 2025 10:34
@keyvaann
Copy link
Collaborator

Thanks! I'll have a look into this

@keyvaann
Copy link
Collaborator

Thanks! Would it be good to add configuration for Repository creation templates as well? Using that we can define Repository lifecycle policies to delete older images and reduce ECR costs.

@baixiac
Copy link
Member Author

baixiac commented Feb 3, 2025

Using that we can define Repository lifecycle policies to delete older images and reduce ECR costs.

Had that at the back of my mind. Since PTC repos do not support lifecycle policies, I see two options here:

  1. Wait for AWS to push out the feature (it sounds a very useful one other users may have already cried for);
  2. Create a Lambda function, triggered periodically to check the last usage time and evict least used images (this adds complexity to the template, comparable to the traditional cache management)

Any thoughts or more options?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants