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

Refactor CopyAcrImagesCommand to utilize ACR library vs AZ CLI #180

Merged
merged 2 commits into from
May 6, 2019

Conversation

MichaelSimons
Copy link
Member

Fixes #165

Refactored the CopyAcrImagesCommand to use the Azure Fluent library instead of invoking the AZ CLI via a Docker container. This is significantly faster as the web requests are invokes asynchronously. On my machine it takes less than one min to publish 282 images (dotnet-docker).

There are a few issues that I needed to workaround in the code.

  1. [FEATURE REQ] Add support for ACR Import Azure/azure-libraries-for-net#656
  2. Make the Fluent SDK thread safe Azure/azure-libraries-for-net#206

As a result of these optimizations, it is no longer necessary to distribute the copy legs of builds across multiple machines therefore the PlatformVersionedOs MatrixType was removed.

@MichaelSimons MichaelSimons requested a review from mthalman May 6, 2019 15:14
@MichaelSimons MichaelSimons merged commit f26221b into dotnet:master May 6, 2019
@MichaelSimons MichaelSimons deleted the fast-acr-import branch May 6, 2019 18:50
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.

Refactor publish commands to run faster and require fewer resources
2 participants