Skip to content

Commit

Permalink
[automated] Merge branch 'release/9.0.1xx' => 'release/9.0.2xx' (#45860)
Browse files Browse the repository at this point in the history
  • Loading branch information
v-wuzhai authored Jan 13, 2025
2 parents a5c6b36 + 30078a2 commit 576cefb
Showing 1 changed file with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,39 @@ public void EndToEnd_NoAPI_Console(string baseImage)
privateNuGetAssets.Delete(true);
}

[DockerAvailableFact]
public void EndToEnd_SingleArch_NoRid()
{
// Create a new console project
DirectoryInfo newProjectDir = CreateNewProject("console");

string imageName = NewImageName();
string imageTag = "1.0";

// Run PublishContainer for multi-arch
CommandResult commandResult = new DotnetCommand(
_testOutput,
"publish",
"/t:PublishContainer",
$"/p:ContainerBaseImage={DockerRegistryManager.FullyQualifiedBaseImageAspNet}",
$"/p:ContainerRepository={imageName}",
$"/p:ContainerImageTag={imageTag}",
"/p:EnableSdkContainerSupport=true")
.WithWorkingDirectory(newProjectDir.FullName)
.Execute();
commandResult.Should().Pass();

// Check that the containers can be run
CommandResult processResultX64 = ContainerCli.RunCommand(
_testOutput,
"--rm",
"--name",
$"test-container-singlearch-norid",
$"{imageName}:{imageTag}")
.Execute();
processResultX64.Should().Pass().And.HaveStdOut("Hello, World!");
}

[DockerIsAvailableAndSupportsArchFact("linux/arm64")]
public void EndToEndMultiArch_LocalRegistry()
{
Expand Down

0 comments on commit 576cefb

Please sign in to comment.