Skip to content

Commit 1a8e397

Browse files
authored
Use new ACR for registry image (#49677)
1 parent e4e9261 commit 1a8e397

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/Microsoft.NET.Build.Containers.IntegrationTests/DockerRegistryManager.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ public class DockerRegistryManager
2424
public const string FullyQualifiedBaseImageAspNetDigest = $"{BaseImageSource}/{AspNetBaseImage}@{Net9ImageDigest}";
2525
private static string? s_registryContainerId;
2626

27+
private static string SDK_AzureContainerRegistryImage => "dotnetdhmirror-f8bzbjakh8cga6ab.azurecr.io/registry:2";
28+
private static string Docker_HubRegistryImage => "docker.io/library/registry:2";
29+
30+
// TODO: some logic to pivot between this and Docker Hub
31+
private static string RegistryImageToUse => SDK_AzureContainerRegistryImage;
32+
2733
internal class SameArchManifestPicker : IManifestPicker
2834
{
2935
public PlatformSpecificManifest? PickBestManifestForRid(IReadOnlyDictionary<string, PlatformSpecificManifest> manifestList, string runtimeIdentifier)
@@ -61,7 +67,7 @@ public static async Task StartAndPopulateDockerRegistry(ITestOutputHelper testOu
6167
{
6268
logger.LogInformation("Spawning local registry at '{registry}', attempt #{attempt}.", LocalRegistry, spawnRegistryAttempt);
6369

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

6672
processResult.Should().Pass().And.HaveStdOut();
6773

0 commit comments

Comments
 (0)