-
-
Notifications
You must be signed in to change notification settings - Fork 781
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker image for linux/arm64/v8 #1386
Comments
Indeed it could have been nice to investigate if building on arm64/v8 works. A first step would be to build the docker image we use locally on ARM machine. The pre-built binaries for browsers would likely need to be installed from different URLs for ARM.
where the tag needs to match one used in run_docker. Then build packages in this docker image. Though after all that work, I'm not sure how much faster native arm64 images would be. It would still run a VM with qemu on Mac M1 as far as I understand. |
Oh I should update docker to the rc3 then. Not sure if my version is using qemu, but seems they made it default on newest version. Thanks for the information in general. For future this issue might be beneficial as a reminder about M1 native support if docker also completes it's own experimental virtualization option. |
https://docs.docker.com/desktop/mac/apple-silicon/ is in GA stage and I already used it for a while and feels good. |
When trying to use an
I think this is the index that Edit: Yes, using ctrl-z to pause and edit the
Edit: keep an eye for resolution on emscripten-core/emsdk#1040 |
Installing dependencies via conda / conda-forge for linux/arm64 and Mac OS M1 CPU should work fine with no Docker related overhead. See docs. In that context, do you feel it's still useful to have a arm64 Docker image? It's would just be more maintenance effort to support this images generally. |
Hi! I suppose with recent ARM systems coming out; not just how the macOS M-series lineup continues to evolve but also the newer Windows ARM laptops are building an ecosystem, it might now be useful to have a
These might not be required now, because the version of the file on the I would be happy to give this a start – please let me know if there are any suggestions before I do! |
What's your plan for the docker image? If you plan to build a whole Pyodide distribution with it, then I think it makes sense, and I would be happy to accept any contributions to the Dockerfile. But, if your goal is to build specific packages out-of-tree, rather than build whole Pyodide distribution, I think it is too much effort to make a docker image for it. (+ we don't want to give the impression that you need to use a docker image to build a package out-of-tree). |
Hi, @ryanking13 – while my plan for those Docker containers remains mostly for personal use, i.e., being able to build specific packages out-of-tree for debugging, but as a part of the greater goal it would be great if a whole Pyodide distribution can be built inside in it too (a complete build instead of partial). I guess adding arm64 support for it will make it build much faster and efficiently on an arm64 system rather than using emulation, and my intention is that the Docker image can be supplied to users through the existing place where it is mentioned in the documentation (so that the notion of it being a method to build from source remains, but that official support gets extended to include another architecture). |
I see. Supporting ARM systems will help a lot of users (especially those with M1+ macs), so if support for both systems is possible in a way that isn't too complicated, I will be happy to accept the patch, so please feel free to experiment with our Dockerfile and run_docker script. Personally, I think it's okay to completely rewrite both files if you need. |
Currently the docker build image is based on linux/amd64 architecture, thus makes the the terminal complains with new M1 machines. It would be better to have a way or guide for new M1 macs, if there is anything more/different needed.
P.S.: This is just a warning in terminal, apart from that everything seems fine.
The text was updated successfully, but these errors were encountered: