@@ -105,8 +105,9 @@ if ( $Test.DockerContainer )
105105 - it -- user ContainerAdministrator `
106106 -- memory= 384m -- cpus= 2 `
107107 mcr.microsoft.com / powershell:nanoserver- 1809 `
108- pwsh - ExecutionPolicy Bypass
108+ cmd / c pwsh - ExecutionPolicy Bypass
109109
110+ # Open an interactive container and run a test file.
110111 docker run -- mount type= bind, source= C:\Repos\Github\psPodTester, target= C:\psPodTester `
111112 - it -- user ContainerAdministrator `
112113 -- memory= 512m -- cpus= 2 `
@@ -156,7 +157,7 @@ if ( $Test.DockerContainer )
156157 - it `
157158 - p 8080 :8080 `
158159 mcr.microsoft.com / powershell:nanoserver- 1809 `
159- pwsh - ExecutionPolicy Bypass - command " /psPodTester/docker.ps1"
160+ cmd / c pwsh - ExecutionPolicy Bypass - command " /psPodTester/docker.ps1"
160161
161162 # AUTOMATED STRESSING - CPU Only
162163 # Runs a stress session with the default values, but skips memory stressing, and exits.
@@ -165,7 +166,7 @@ if ( $Test.DockerContainer )
165166 - it `
166167 - p 8080 :8080 `
167168 mcr.microsoft.com / powershell:nanoserver- 1809 `
168- pwsh - ExecutionPolicy Bypass - command " /psPodTester/docker.ps1"
169+ cmd / c pwsh - ExecutionPolicy Bypass - command " /psPodTester/docker.ps1"
169170
170171 # AUTOMATED STRESSING - Memory Only
171172 # Runs a stress session with the default values, but skips memory stressing, and exits.
@@ -174,7 +175,7 @@ if ( $Test.DockerContainer )
174175 - it `
175176 - p 8080 :8080 `
176177 mcr.microsoft.com / powershell:nanoserver- 1809 `
177- pwsh - ExecutionPolicy Bypass - command " /psPodTester/docker.ps1"
178+ cmd / c pwsh - ExecutionPolicy Bypass - command " /psPodTester/docker.ps1"
178179
179180 # MANUAL STRESSING
180181 # Runs a test with manually specified values. The stress values listed below are the defaults.
@@ -195,7 +196,7 @@ if ( $Test.DockerContainer )
195196 - e " PSPOD_TEST_WebServerPort=8080" `
196197 - it -- user ContainerAdministrator `
197198 mcr.microsoft.com / powershell:nanoserver- 1809 `
198- pwsh - ExecutionPolicy Bypass - command " /psPodTester/docker.ps1"
199+ cmd / c pwsh - ExecutionPolicy Bypass - command " /psPodTester/docker.ps1"
199200
200201 # RANDOMIZED STRESSING
201202 # Runs a 4-hour test with randomized stress and rest cycles. The stress and rest
@@ -217,7 +218,7 @@ if ( $Test.DockerContainer )
217218 - it -- user ContainerAdministrator `
218219 - p 80 :80 `
219220 mcr.microsoft.com / powershell:nanoserver- 1809 - v1.0.5 `
220- pwsh - ExecutionPolicy Bypass - command " /psPodTester/docker.ps1"
221+ cmd / c pwsh - ExecutionPolicy Bypass - command " /psPodTester/docker.ps1"
221222
222223 # Test dockerhub images.
223224 docker run `
0 commit comments