Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[automated] Merge branch 'release/8.0.4xx' => 'release/9.0.1xx' #45824

Merged
merged 13 commits into from
Jan 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,39 @@ public void EndToEnd_NoAPI_Console()
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
Loading