-
-
Notifications
You must be signed in to change notification settings - Fork 654
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
Make Images support arm64 natively for development on M1 Macs #855
Comments
Make amd64 images work on arm64You can use an override file to explicitly emulate based on amd64: #878 (comment) Current researchI 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 is 1 hour. 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. TL;DR
I will pin this issue for better visibility |
UpdateDocker images that now come with ARM64 support:
Images that are currently lacking ARM64 support: |
UpdateI have added two more required base images to support arm64 on Debian Jessie:
|
@cytopia Not sure if I understand correctly, but to be able to use this on an M1 Mac I can only use one of the PHP base images? So in my docker-compose I cannot use for example |
UpdateThere is currently a WIP PR to add Pipelines to build, test and deploy takes ages, which makes debugging very time-costy. Might take hours, days or weeks, depending on how smooth everything works and how many errors will be encountered. |
UpdateFinally full @frumbert @Lenitr @mhodge13 @boumanb @joeke @aliz7 could you guys give some updates on how this is working, as I don't have an arm64 machine myself Note: You might need to delete any Devilbox |
@cytopia Awesome, thank you! I'll give it a test on my Macbook and let you know how it goes. |
@cytopia Looks to be working as expected from my end. I've used the bind, httpd (nginx), mysql and php (8.1 and 7.4) containers and they all work fine. Also working in the shell of the PHP containers looks good; I've used the node, npm, nvm and composer scripts inside the containers and those seem to be working fine as well. |
Still no official support from Mailhog but there's a brilliant fork from jcalonso/MailHog which does. |
ISSUE TYPE
SUMMARY
Hi,
I'm using a MacBook Pro 2021 with M1 Pro ARM CPU. Unfortunately, the custom devilbox docker images do not support arm64 natively whereas all the official httpd, php, mariadb etc. images already support arm64 natively.
Goal
Make Images support arm64 natively for development on M1 Macs
The text was updated successfully, but these errors were encountered: