ignite / cli

Ignite is a CLI tool and hub designed for constructing Proof of Stake Blockchains rooted in Cosmos-SDK
https://ignite.com
Other
1.25k stars 548 forks source link

add Docker image support for arm64 chips (Barrie's MacBook Air can test) #1110

Closed barriebyron closed 2 years ago

barriebyron commented 3 years ago

per https://github.com/docker/for-mac/issues/5123#issuecomment-784992589

Docker issue logged and closed because: this is a qemu bug, which is the upstream component we use for running Intel (amd64) containers on M1 (arm64) chips, and is unfortunately not something we control. In general we recommend running arm64 containers on M1 chips because (even ignoring any crashes) they will always be faster and use less memory.

symptom `➜ starport git:(install-v0.16-docs) docker run -ti -v $HOME/sdh:/home/tendermint -v $PWD:/apps starport/cli:develop app github.com/hello/planet

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

⭐️ Successfully created a new blockchain 'planet'. 👉 Get started with the following commands:

% cd planet % starport serve

Documentation: https://docs.starport.network ➜ starport git:(install-v0.16-docs) ✗ docker run -ti -v $HOME/sdh:/home/tendermint -v $PWD:/apps -p 1317:1317 -p 26657:26657 starport/cli:develop serve -p planet

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested qemu: uncaught target signal 11 (Segmentation fault) - core dumped`

fadeev commented 3 years ago

Unassigned @ilgooz because even though this is something we should take care of, it's not a high priority, especially before v0.16.

ilgooz commented 3 years ago

For feature note:

This requires to add arm64 version of embedded nodetime and protoc binaries.

faddat commented 3 years ago

Working on this again in #1187

In fact it now builds on my Mac but I'm failing the various tests that we have in Actions.

aat2703 commented 2 years ago

Any news on this? This is still not working :/

ilgooz commented 2 years ago

To be able to have this, we first need to be able to compile nodetime (a nodejs runtime embed into Starport) into ARM through zeit/pkg. Right now what have is in this script.

We also need ARM binary for protoc and dart.

ilgooz commented 2 years ago

solved by https://github.com/ignite-hq/cli/pull/2247

ilgooz commented 2 years ago

@aat2703 you should now have access to our ARM binaries in the nightly and from our Docker hub images.

We'll include the ARM binaries to the next point release of the CLI after enough testing.