Merge pull request #1329 from tophj-ibm/change-test-image
Change testImage based on GOARCH
This commit is contained in:
commit
ca9dec32de
@ -2,12 +2,36 @@
|
|||||||
|
|
||||||
package containerd
|
package containerd
|
||||||
|
|
||||||
|
import (
|
||||||
|
"runtime"
|
||||||
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
defaultRoot = "/var/lib/containerd-test"
|
defaultRoot = "/var/lib/containerd-test"
|
||||||
defaultAddress = "/run/containerd-test/containerd.sock"
|
defaultAddress = "/run/containerd-test/containerd.sock"
|
||||||
testImage = "docker.io/library/alpine:latest"
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
testImage string
|
||||||
)
|
)
|
||||||
|
|
||||||
func platformTestSetup(client *Client) error {
|
func platformTestSetup(client *Client) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
switch runtime.GOARCH {
|
||||||
|
case "386":
|
||||||
|
testImage = "docker.io/i386/alpine:latest"
|
||||||
|
case "arm":
|
||||||
|
testImage = "docker.io/arm32v6/alpine:latest"
|
||||||
|
case "arm64":
|
||||||
|
testImage = "docker.io/arm64v8/alpine:latest"
|
||||||
|
case "ppc64le":
|
||||||
|
testImage = "docker.io/ppc64le/alpine:latest"
|
||||||
|
case "s390x":
|
||||||
|
testImage = "docker.io/s390x/alpine:latest"
|
||||||
|
default:
|
||||||
|
testImage = "docker.io/library/alpine:latest"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user