mirror of
https://github.com/kemko/nomad.git
synced 2026-01-03 17:05:43 +03:00
Use a pinned tag of stefanscherer/busybox-windows
This commit is contained in:
@@ -18,9 +18,9 @@ import (
|
||||
|
||||
func testContainerDetails() (image string, imageName string, imageTag string) {
|
||||
if runtime.GOOS == "windows" {
|
||||
return "stefanscherer/busybox-windows:latest",
|
||||
return "stefanscherer/busybox-windows@sha256:af396324c4c62e369a388ebb38d4efd44211dc7c95a438e6feb62b4ae4194c5b",
|
||||
"stefanscherer/busybox-windows",
|
||||
"latest"
|
||||
"sha256:af396324c4c62e369a388ebb38d4efd44211dc7c95a438e6feb62b4ae4194c5b"
|
||||
}
|
||||
|
||||
return "busybox:1", "busybox", "1"
|
||||
|
||||
@@ -455,7 +455,7 @@ func TestDockerDriver_Start_StoppedContainer(t *testing.T) {
|
||||
if runtime.GOOS != "windows" {
|
||||
imageID, err = d.Impl().(*Driver).loadImage(task, &taskCfg, client)
|
||||
} else {
|
||||
image, lErr := client.InspectImage("stefanscherer/busybox-windows:latest")
|
||||
image, lErr := client.InspectImage("stefanscherer/busybox-windows@sha256:af396324c4c62e369a388ebb38d4efd44211dc7c95a438e6feb62b4ae4194c5b")
|
||||
err = lErr
|
||||
if image != nil {
|
||||
imageID = image.ID
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
func newTaskConfig(variant string, command []string) TaskConfig {
|
||||
// busyboxImageID is an id of an image containing nanoserver windows and
|
||||
// a busybox exe.
|
||||
busyboxImageID := "stefanscherer/busybox-windows:latest"
|
||||
busyboxImageID := "stefanscherer/busybox-windows@sha256:af396324c4c62e369a388ebb38d4efd44211dc7c95a438e6feb62b4ae4194c5b"
|
||||
|
||||
return TaskConfig{
|
||||
Image: busyboxImageID,
|
||||
|
||||
Reference in New Issue
Block a user