Skip to content

Commit 09cd9a9

Browse files
authored
[release/8.0.4xx] Use new ACR for registry image (#49690)
2 parents c23c91d + 328520c commit 09cd9a9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/DockerRegistryManager.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ public class DockerRegistryManager
2121
public const string FullyQualifiedBaseImageAspNet = $"{BaseImageSource}/{AspNetBaseImage}:{Net8ImageTag}";
2222
private static string? s_registryContainerId;
2323

24+
private static string SDK_AzureContainerRegistryImage => "dotnetdhmirror-f8bzbjakh8cga6ab.azurecr.io/registry:2";
25+
private static string Docker_HubRegistryImage => "docker.io/library/registry:2";
26+
27+
// TODO: some logic to pivot between this and Docker Hub
28+
private static string RegistryImageToUse => SDK_AzureContainerRegistryImage;
29+
2430
internal class SameArchManifestPicker : IManifestPicker
2531
{
2632
public PlatformSpecificManifest? PickBestManifestForRid(IReadOnlyDictionary<string, PlatformSpecificManifest> manifestList, string runtimeIdentifier)
@@ -58,7 +64,7 @@ public static async Task StartAndPopulateDockerRegistry(ITestOutputHelper testOu
5864
{
5965
logger.LogInformation("Spawning local registry at '{registry}', attempt #{attempt}.", LocalRegistry, spawnRegistryAttempt);
6066

61-
CommandResult processResult = ContainerCli.RunCommand(testOutput, "--rm", "--publish", "5010:5000", "--detach", "docker.io/library/registry:2").Execute();
67+
CommandResult processResult = ContainerCli.RunCommand(testOutput, "--rm", "--publish", "5010:5000", "--detach", RegistryImageToUse).Execute();
6268

6369
processResult.Should().Pass().And.HaveStdOut();
6470

0 commit comments

Comments
 (0)