-
-
Notifications
You must be signed in to change notification settings - Fork 653
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
Does Devilbox work on Apple Silicon? #822
Comments
There are no arm64 images available at the moment. |
I'm wondering if you're thinking of supporting arm64 in the future? Or are you dependant on others to test this? Thanks a lot for your effort and time in this project! |
This article may help when you are ready to create the arm64 images. |
Got Devilbox to run on my MacBook Air (MBA) M1 (16GB/512GB) (which I received last week, returning it) without any modifications. Executing However; the performance is horrible. This has nothing to do with Devilbox. It's the IO operations on mounted volumes on Mac devices. Performance was okay on my 2020 MacBook Pro, nothing compared to linux but, okay. One way to tweak performance of the mounted volumes is leveraging NFS as instructed here. It enhances performance greatly. I'll look into writing a PR to provide documentation (steps and/ or basic files) on how to set this up. On the MBA M1 I've received I installed docker, cloned devilbox and started testing with and without NFS mounted volumes. The results of running
With these results (using NFS setup) the performance on the MBA M1 is slightly worse compared to my "old" MacBook Pro 2020 Intel (16GB/512GB). Also, I like to make use of Remote Development - Containers in VS Code, it enables me to do everything from within my VS Code window (running commands in the integrated terminal directly in devilbox and editing source files). Also, some extensions require PHP, which I want to keep off my host system, they are able to run because they are being installed inside of the development container by VS Code. It is great. The problem however is; qemu eating my RAM on the MBA M1 (when using the integrated VS Code terminal) and causing it to crash, both docker (devilbox containers) and VS Code. This forces me to return it, because I was looking for a upgrade in contrast to a downgrade. I have to admit, running commands like |
I was looking into building ARM images. This however seems to be rather problematic. I have currently tested it with a base image (PHP 8.2) in this PR: devilbox/docker-php-fpm-8.2#2
Timewise it would all be do-able for the used Docker images for Devilbox, however, when looking at the actual PHP images, the fastest pipeline was 1 hours. When doing ARM64 images the pipeline will most likely also be (more than) 11 times slower, which would result into something like at least 11 hours per build. As far as I've read, GitHub actions allows a maximum of 6 hours per job, so that would be currently impossible. Additionally, as this is only a non-commercial project I'm doing in my spare-time and migrating, testing and fixing tens of docker images would take months and lots of energey, it is something which I'm unable take. I will leave this to the community. If somebody wants to step in and take action and is also able to solve the long-running pipelines, then let me know and we can work something out. |
Closing in favour of this: #855 |
there a way to install or run Devilbox on Apple M1 Macs?
Attached is a log of performing
docker-compose up
on a new installation. Look like dystopia/bind, devilbox/php-fpm, devilbox/apache and devilbox/mysql all use amd64 images. How does one switch to arm64 images?docker-compose up M1.txt
The text was updated successfully, but these errors were encountered: