- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi @JuanS_OCS
How do you know which images to delete? For example, I want to delete all images in ECR that belong to SAS release Stable 2024.04. I am not aware of any image tag that associates an image with Stable 2024.04. Maybe I am wrong. Please let me know if you find how to do it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
$ grep newTag -m1 -B1 sas-bases/overlays/required/transformers.yaml
newName: cr.sas.com/viya-4-x64_oci_linux_2-docker/sas-activities
newTag: 1.53.15-20221103.1667486852217
But the version can change during a release cycle, if an update is pushed to 2024.04 for a given image and you pulled the latest assets for it, then the image tag would be different for that image than what you might have in your ECR.
Using the lifecycle option lets you instruct the ECR to remove all entries that meet given criteria, while keeping some history.
Greg Wootton | Principal Systems Technical Support Engineer
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi @gwootton
If I understand correctly the ECR lifecycle option is at the repository level and not at the registry level (correct me if I am wrong) so this means that I need to set it up for all the SAS repositories and there are dozens of them...
Has anyone tried this lifecycle approach in a production site?
I think the SAS Mirror Manager should really have a "cleanup" option since it can tell the exact image tags associated with each Cadence release and it can safely remove images from the CR.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
It looks like there is functionality in the AWS console to preview the results of the lifecycle policy before applying it.
https://docs.aws.amazon.com/AmazonECR/latest/userguide/lpp_creation.html
Greg Wootton | Principal Systems Technical Support Engineer
- « Previous
-
- 1
- 2
- Next »