File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
test/Microsoft.NET.Build.Containers.IntegrationTests Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -688,6 +688,39 @@ public void EndToEnd_NoAPI_Console()
688
688
privateNuGetAssets . Delete ( true ) ;
689
689
}
690
690
691
+ [ DockerAvailableFact ]
692
+ public void EndToEnd_SingleArch_NoRid ( )
693
+ {
694
+ // Create a new console project
695
+ DirectoryInfo newProjectDir = CreateNewProject ( "console" ) ;
696
+
697
+ string imageName = NewImageName ( ) ;
698
+ string imageTag = "1.0" ;
699
+
700
+ // Run PublishContainer for multi-arch
701
+ CommandResult commandResult = new DotnetCommand (
702
+ _testOutput ,
703
+ "publish" ,
704
+ "/t:PublishContainer" ,
705
+ $ "/p:ContainerBaseImage={ DockerRegistryManager . FullyQualifiedBaseImageAspNet } ",
706
+ $ "/p:ContainerRepository={ imageName } ",
707
+ $ "/p:ContainerImageTag={ imageTag } ",
708
+ "/p:EnableSdkContainerSupport=true" )
709
+ . WithWorkingDirectory ( newProjectDir . FullName )
710
+ . Execute ( ) ;
711
+ commandResult . Should ( ) . Pass ( ) ;
712
+
713
+ // Check that the containers can be run
714
+ CommandResult processResultX64 = ContainerCli . RunCommand (
715
+ _testOutput ,
716
+ "--rm" ,
717
+ "--name" ,
718
+ $ "test-container-singlearch-norid",
719
+ $ "{ imageName } :{ imageTag } ")
720
+ . Execute ( ) ;
721
+ processResultX64 . Should ( ) . Pass ( ) . And . HaveStdOut ( "Hello, World!" ) ;
722
+ }
723
+
691
724
[ DockerIsAvailableAndSupportsArchFact ( "linux/arm64" ) ]
692
725
public void EndToEndMultiArch_LocalRegistry ( )
693
726
{
You can’t perform that action at this time.
0 commit comments