private string GetImage(string imageType, string version, string osVariant) { string image = $"{Registry}/{RepoPrefix}dotnet/framework/{imageType}:{version}-{osVariant}"; // Ensure image exists locally if (IsLocalRun) { Assert.True(_dockerHelper.ImageExists(image), $"`{image}` could not be found on disk."); } else { _dockerHelper.Pull(image); } return(image); }
private string GetImage(string imageType, string version, string osVariant) { string repo = $"dotnet/framework/{imageType}"; string tag = $"{version}-{osVariant}"; string registry = GetRegistryNameWithRepoPrefix(repo, tag); string image = $"{registry}{repo}:{tag}"; // Ensure image exists locally if (IsLocalRun) { Assert.True(DockerHelper.ImageExists(image), $"`{image}` could not be found on disk."); } else { _dockerHelper.Pull(image); } return(image); }