Esempio n. 1
0
 private static async Task TagDockerImageLocallyAsync(AppUpdateRequest request)
 {
     await _dockerClient.Images.TagImageAsync($"{request.Repository}:{request.Version}", new ImageTagParameters()
     {
         RepositoryName = request.Repository,
         Tag            = "local"
     }, CancellationToken.None);
 }
Esempio n. 2
0
 private static async Task DownloadDockerImageLocallyAsync(AppUpdateRequest request)
 {
     await _dockerClient.Images.CreateImageAsync(
         new ImagesCreateParameters
     {
         FromSrc = "ksivamuthu.azurecr.io",
         Repo    = request.Repository,
         Tag     = request.Version
     },
         new AuthConfig
     {
         Username = "******",
         Password = "******"
     }, new DockerImageDownloadProgress(), CancellationToken.None);
 }