Skip to content

Commit d6614af

Browse files
Use the AMD server image when running on mac
1 parent afd5df9 commit d6614af

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/octopus_container_test_framework.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import (
2020
"os"
2121
"os/exec"
2222
"path/filepath"
23+
"runtime"
2324
"strconv"
2425
"strings"
2526
"sync"
@@ -222,6 +223,11 @@ func (o *OctopusContainerTest) setupOctopus(ctx context.Context, connString stri
222223

223224
req.Env = o.AddCustomEnvironment(req.Env)
224225

226+
// We do not support a server arm image at this stage, try and use amd instead.
227+
if runtime.GOARCH == "arm64" {
228+
req.ImagePlatform = "linux/amd64"
229+
}
230+
225231
log.Println("Creating Octopus container")
226232
container, err := testcontainers.GenericContainer(ctx, testcontainers.GenericContainerRequest{
227233
ContainerRequest: req,

0 commit comments

Comments
 (0)