GRIDAPPSD / CIMHub

14 stars 9 forks source link

Unable to run on M-series Macs #48

Open trevorhardy opened 3 weeks ago

trevorhardy commented 3 weeks ago

Describe the bug It appears that one or more components instantiatied by start.sh are not supported on the ARM-based M-series Macs.

To Reproduce Follow README End User Instructions through start.sh

Expected behavior No error messages

Operating System (please complete the following information):

Output from start.sh

 % ./start.sh
WARN[0000] /Users/hard312/src/CIMHub/docker-compose.yml: `version` is obsolete 
[+] Running 18/18
 ✔ hub 17 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]      0B/0B      Pulled                                                                          69.0s 
   ✔ afb6ec6fdc1c Pull complete                                                                                                      27.8s 
   ✔ 2cf47e503ea9 Pull complete                                                                                                       2.4s 
   ✔ 24d1e29dc62b Pull complete                                                                                                       9.0s 
   ✔ bd4a83fdfd23 Pull complete                                                                                                       3.2s 
   ✔ 42046f770a49 Pull complete                                                                                                       4.9s 
   ✔ 7de74867df48 Pull complete                                                                                                      20.5s 
   ✔ 5bc3995f3f6a Pull complete                                                                                                      10.0s 
   ✔ 8a2339f2e6cf Pull complete                                                                                                      11.2s 
   ✔ 2bd015e21041 Pull complete                                                                                                      62.4s 
   ✔ a8f3e781063f Pull complete                                                                                                      21.3s 
   ✔ 470ce7fe6211 Pull complete                                                                                                      24.1s 
   ✔ 1324d7afa9e8 Pull complete                                                                                                      26.0s 
   ✔ 0df82b9044b3 Pull complete                                                                                                      26.9s 
   ✔ efb3982ec437 Pull complete                                                                                                      27.9s 
   ✔ 36f7a45a2574 Pull complete                                                                                                      28.6s 
   ✔ 2aff2d59fdc8 Pull complete                                                                                                      28.7s 
   ✔ fa06e0a99e9f Pull complete                                                                                                      43.4s 
[+] Running 1/2
 ⠸ Network cimhub_default                                                                                                                                    Created0.4s -1  Creating                                                                                            0.2s 
 ⠸ Container cimhub-blazegraph-1                                                                                                           [+] Running 2/4   Created0.3s 
 ⠼ Network cimhub_default                                                                                                                                    Created0.5s 
 ⠼ Container cimhub-blazegraph-1                                                                                                                             Starting0.4s 
[+] Running 3/5he requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platf ⠴ Network cimhub_default                                                                                                                                    Created0.6s                                                                                                               ✔ Container cimhub-blazegraph-1                                                                                                                             Started0.5s latform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was[+] Running 3/5he requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platf ⠦ Network cimhub_default                                                                                                                                    Created0.7s                                                                                                               ✔ Container cimhub-blazegraph-1                                                                                                                             Started0.5s latform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was[+] Running 4/5he requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platf ⠧ Network cimhub_default                                                                                                                                    Created0.7s                                                                                                               ✔ Container cimhub-blazegraph-1                                                                                                                             Started0.5s latform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was ! blazegraph The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 0.0s 
 ✔ Container cimhub-hub-1                                                                                                                                    Started0.3s 
 ! hub The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested        0.0s 
Error response from daemon: No such container: cimhub_hub_1

What's next?
  Try Docker Debug for seamless, persistent debugging tools in any container or image → docker debug cimhub_hub_1
  Learn more at https://docs.docker.com/go/debug-cli/
temcdrm commented 6 days ago

Per this discussion: https://forums.docker.com/t/run-x86-intel-and-arm-based-images-on-apple-silicon-m1-macs/117123 it should work, but may require some different command-line switch. If that doesn't work, someone probably has to build a special Docker image for Apple Silicon.

I happen to have an 8-GB Macbook Air M2 but without Docker. The Java/Python option seems like a better idea on that machine.