File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
framework/components/blockchain Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,14 @@ func newAptos(in *Input) (*Output, error) {
8080 cmd = append (cmd , in .DockerCmdParamsOverrides ... )
8181 }
8282
83+ // Set image platform based on architecture
84+ var imagePlatform string
85+ if runtime .GOARCH == "arm64" {
86+ imagePlatform = "linux/arm64"
87+ } else {
88+ imagePlatform = "linux/amd64"
89+ }
90+
8391 req := testcontainers.ContainerRequest {
8492 Image : in .Image ,
8593 ExposedPorts : exposedPorts ,
@@ -94,7 +102,7 @@ func newAptos(in *Input) (*Output, error) {
94102 h .PortBindings = bindings
95103 framework .ResourceLimitsFunc (h , in .ContainerResources )
96104 },
97- ImagePlatform : "linux/amd64" ,
105+ ImagePlatform : imagePlatform ,
98106 Cmd : cmd ,
99107 Files : []testcontainers.ContainerFile {
100108 {
You can’t perform that action at this time.
0 commit comments