Skip to content

Commit 42f4431

Browse files
[release/8.0.3xx] Use new ACR for registry image (#49689)
Co-authored-by: Chet Husk <[email protected]>
1 parent 827f5ac commit 42f4431

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)
@@ -52,7 +58,7 @@ public static async Task StartAndPopulateDockerRegistry(ITestOutputHelper testOu
5258
{
5359
logger.LogInformation("Spawning local registry at '{registry}', attempt #{attempt}.", LocalRegistry, spawnRegistryAttempt);
5460

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

5763
processResult.Should().Pass().And.HaveStdOut();
5864

0 commit comments

Comments
 (0)