File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed
book/src/framework/components/blockchains Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 22
33Since ` Solana ` doesn't have official image for ` arm64 ` we built it, images we use are:
44```
5- amd64 solanalabs/solana:v1.18.26 - used in CI
6- arm64 f4hrenh9it/ solana:latest - used locally
5+ amd64 solanalabs/solana:v1.18.26
6+ arm64 public.ecr.aws/w0i8p0z9/ solana-validator:main-1dcdbc4
77```
88
99## Configuration
Original file line number Diff line number Diff line change 1+ - Updated solana image selection logic to use runtime arch
Original file line number Diff line number Diff line change 55 "fmt"
66 "os"
77 "path/filepath"
8+ "runtime"
89 "strconv"
910 "strings"
1011 "time"
@@ -31,12 +32,13 @@ var idJSONRaw = `
3132`
3233
3334func defaultSolana (in * Input ) {
34- ci := os .Getenv ("CI" ) == "true"
35- if in .Image == "" && ! ci {
36- in .Image = "f4hrenh9it/solana"
37- }
38- if in .Image == "" && ci {
39- in .Image = "anzaxyz/agave:v2.1.13"
35+ if in .Image == "" {
36+ // Official arm64 image does not exist for Solana so use custom built one
37+ if runtime .GOARCH == "arm64" {
38+ in .Image = "public.ecr.aws/w0i8p0z9/solana-validator:main-1dcdbc4"
39+ } else {
40+ in .Image = "anzaxyz/agave:v2.1.13"
41+ }
4042 }
4143 if in .Port == "" {
4244 in .Port = "8999"
You can’t perform that action at this time.
0 commit comments