Files
nomad/drivers/docker/testing_windows.go
Danielle Tomlinson 1e0825388e docker: Test cleanup for windows
* Docker for Windows does not support ulimits
* Use filepath.ToSlash to test workdir
* Convert expected mount paths to system style
* Skip security-opt test on windows
  - Windows does not support seccomp, and it's unclear which options are
    available.
* Skip StartN due to lack of sigint
* docker: Use api to get image info on windows
* No bridge on windows
* Stop hardcoding /bin/
2019-01-17 18:43:14 +01:00

26 lines
650 B
Go

// +build windows
package docker
import (
testing "github.com/mitchellh/go-testing-interface"
"github.com/hashicorp/nomad/client/allocdir"
)
func newTaskConfig(variant string, command []string) TaskConfig {
// busyboxImageID is an id of an image containting nanoserver windows and
// a busybox exe.
// See https://github.com/dantoml/windows/blob/81cff1ed77729d1fa36721abd6cb6efebff2f8ef/docker/busybox/Dockerfile
busyboxImageID := "dantoml/busybox-windows:08012019"
return TaskConfig{
Image: busyboxImageID,
Command: command[0],
Args: command[1:],
}
}
func copyImage(t testing.T, taskDir *allocdir.TaskDir, image string) {
}