Skip to content

Commit bded99b

Browse files
default image platform to amd64 and read input.ImagePlatform if available for sui
1 parent 24ee1a1 commit bded99b

File tree

1 file changed

+7
-1
lines changed
  • framework/components/blockchain

1 file changed

+7
-1
lines changed

framework/components/blockchain/sui.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ func newSui(in *Input) (*Output, error) {
9999

100100
bindPort := fmt.Sprintf("%s/tcp", in.Port)
101101

102+
// default to amd64, unless otherwise specified
103+
imagePlatform := "linux/amd64"
104+
if in.ImagePlatform != nil {
105+
imagePlatform = *in.ImagePlatform
106+
}
107+
102108
req := testcontainers.ContainerRequest{
103109
Image: in.Image,
104110
ExposedPorts: []string{in.Port, DefaultFaucetPort},
@@ -112,7 +118,7 @@ func newSui(in *Input) (*Output, error) {
112118
h.PortBindings = framework.MapTheSamePort(bindPort, DefaultFaucetPort)
113119
framework.ResourceLimitsFunc(h, in.ContainerResources)
114120
},
115-
ImagePlatform: "linux/amd64",
121+
ImagePlatform: imagePlatform,
116122
Env: map[string]string{
117123
"RUST_LOG": "off,sui_node=info",
118124
},

0 commit comments

Comments
 (0)