File tree Expand file tree Collapse file tree 4 files changed +12
-1
lines changed
book/src/framework/components/blockchains Expand file tree Collapse file tree 4 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ API is available on [localhost:9000](http://localhost:9000)
99 type = " sui"
1010 image = " mysten/sui-tools:mainnet" # if omitted default is mysten/sui-tools:devnet
1111 contracts_dir = " $your_dir"
12+ image_platform = " linux/amd64" # default one
1213```
1314
1415## Usage
Original file line number Diff line number Diff line change 1+ - Sui image platform param
Original file line number Diff line number Diff line change @@ -58,6 +58,9 @@ type Input struct {
5858 // GAPv2 specific params
5959 HostNetworkMode bool `toml:"host_network_mode"`
6060 CertificatesPath string `toml:"certificates_path"`
61+
62+ // Optional params
63+ ImagePlatform * string `toml:"image_platform"`
6164}
6265
6366// Output is a blockchain network output, ChainID and one or more nodes that forms the network
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