Skip to content

Commit 9e09969

Browse files
committed
Use nanoserver for integration tests on Windows
nanoserver is smaller, but doesn't have powershell. We don't really care though. Let's see if this makes things faster.
1 parent 7065e2e commit 9e09969

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

integration_windows_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66

77
package docker
88

9-
const integrationDockerImage = "mcr.microsoft.com/windows/servercore:ltsc2022"
9+
const integrationDockerImage = "mcr.microsoft.com/windows/nanoserver:ltsc2022"
1010

1111
func integrationCreateContainerOpts(imageName string, hostConfig *HostConfig) CreateContainerOptions {
1212
return CreateContainerOptions{
1313
Config: &Config{
1414
Image: imageName,
15-
Cmd: []string{"powershell", "-Command", `Write-Host "hello hello"`},
15+
Cmd: []string{"cmd", "/S", "/C", "echo hello hello"},
1616
},
1717
HostConfig: hostConfig,
1818
}

0 commit comments

Comments
 (0)