Beispiel #1
0
        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);
        }
Beispiel #2
0
        public 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 (Config.PullImages)
            {
                DockerHelper.Pull(image);
            }
            else
            {
                Assert.True(DockerHelper.ImageExists(image), $"`{image}` could not be found on disk.");
            }

            return(image);
        }