github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/drivers/docker/driver_windows_test.go (about) 1 //go:build windows 2 3 package docker 4 5 import ( 6 "testing" 7 8 "github.com/hashicorp/nomad/client/allocdir" 9 tu "github.com/hashicorp/nomad/testutil" 10 ) 11 12 func newTaskConfig(variant string, command []string) TaskConfig { 13 // busyboxImageID is an id of an image containing nanoserver windows and 14 // a busybox exe. 15 busyboxImageID := "hashicorpdev/busybox-windows:server2016-0.1" 16 17 if tu.IsCI() { 18 // In CI, use HashiCorp Mirror to avoid DockerHub rate limiting 19 busyboxImageID = "docker.mirror.hashicorp.services/" + busyboxImageID 20 } 21 22 return TaskConfig{ 23 Image: busyboxImageID, 24 ImagePullTimeout: "5m", 25 Command: command[0], 26 Args: command[1:], 27 } 28 } 29 30 // No-op on windows because we don't load images. 31 func copyImage(t *testing.T, taskDir *allocdir.TaskDir, image string) { 32 }