docker-tools
docker-tools copied to clipboard
GenerateEolAnnotationDataCommand is slow
Generating EOL annotation data for images is slow. Currently the command takes in a list of image digests, and then for each digest:
- Uses the
orasCLI to check if the image already has a lifecycle annotation. - Uses the
orasCLI to add the lifecycle annotation if the image doesn't already have one.
Even though this operation is parallelized (with Parallel.ForEach), it's really slow for large quantities of images. This makes our publish jobs and ACR cleanup pipelines take a long time.
Related:
- https://github.com/dotnet/docker-tools/issues/1827