Skip to content

Commit 25df27b

Browse files
committed
Added runtime arch check for Solana image
1 parent 2b475ac commit 25df27b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

framework/components/blockchain/solana.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"fmt"
66
"os"
77
"path/filepath"
8+
"runtime"
89
"strconv"
910
"strings"
1011
"time"
@@ -31,9 +32,13 @@ var idJSONRaw = `
3132
`
3233

3334
func defaultSolana(in *Input) {
34-
// Use image locally and in CI for arm64
3535
if in.Image == "" {
36-
in.Image = "f4hrenh9it/solana"
36+
// Official arm64 image does not exist for Solana so use custom built one
37+
if runtime.GOARCH == "arm64" {
38+
in.Image = "f4hrenh9it/solana"
39+
} else {
40+
in.Image = "anzaxyz/agave:v2.1.13"
41+
}
3742
}
3843
if in.Port == "" {
3944
in.Port = "8999"

0 commit comments

Comments
 (0)