File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
framework/components/blockchain Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff 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 },
You can’t perform that action at this time.
0 commit comments