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
Cannot install on MacbookAir M1 processor #399
Comments
@amarmureanuarnia Unless I'm mistaken, the error there is related to how Homebrew is installed and not specific to Warden.
On that linked installation docs page, you'll notice Homebrew states on M1 Macs it will install into If you want to give Warden a shot without needing to fix or change your Homebrew installation, feel free to use the alternate installation method documented here: https://docs.warden.dev/installing.html#alternative-installation |
Thanks for the fast response. I already tried |
Hi @amarmureanuarnia, did you get a chance to get this working on an M1 Mac? Also, @davidalger - is Warden officially supported on an M1 Mac? I'm just curious about the state of Magento development on Apple Silicon systems. :) |
Hei @drpayyne ! Unfortunately, I didn't had time to try again. As of M1 Mac development, I can tell you that 90% of my work is still done on my old Macbook Pro late 2015 Intel based. I tried a couple of other projects with docker images, and from 4 projects only one worked without the need of doing some customization. Everyone that right now has an M1 Mac should invest time in building images for their project on the new ARM architecture. How I'm seeing it, is that even with the new Macbookpro 16 M2 there will still be missing pieces in the development process. In conclusion I still feel like an pioneer :))) |
There is certainly room for some improvements on M1 currently, but complete support (i.e. no emulation required) is going to be a long time coming and there is no ETA for that, as many of these issues relate to upstream deps, many of which lack arm64 / aarch64 images and/or rpms. I'm also limited in the time I have to spend building, testing, etc.
My honest take is this: Docker Desktop literally just reached "GA" (whatever that means) only this past April. It was in tech preview starting Dec 2020, and that is hardly time to become stable. Developers that know they rely on Docker Desktop racing out to buy M1 macs, many before Docker Desktop was even out of tech preview, will necessarily be accepting some level of pain in exchange for being early adopters. There is a reason the first M1 models Apple has released are not super developer focused, it takes time (a lot of time) for an entire ecosystem to catch up, particularly with complicated things like emulation and virtualization. Even with native arm64 images (that won't require QEMU emulation), there are "known issues" such as the following turning up in the release notes for Docker Desktop (this one is from June 6th):
There is list of known issues (that I assume is kept current) here: https://docs.docker.com/docker-for-mac/apple-silicon/ An initial and first step here will be updating the image build system here to build and push multi-platform images for those where upstream dependencies exist to support it, while keeping the other image builds unchanged. This will take time to accomplish (and is something for which I also have no ETA as I cannot make it a priority at the moment) |
Thank you so much @davidalger, for taking the time and effort for this detailed explanation of the state of Docker based Magento development in M1 Macs. This is the most helpful. It really gives a perfectly clear status of this.
Of course, I understand it will take a lot of time for full support. Thank you again for your work with Warden! |
Looks like they recently published https://packagecloud.io/varnishcache/varnish60lts?filter=rpms |
Elasticsearch has multi-arch images in Docker Hub for versions
@davidalger, the above are my thoughts on this and I'm happy to collaborate and contribute to this as required. Please let me know what you think, thanks! |
Might also be an option to switch the Mailhog image to |
UpdateI have forked this repository and made it run natively on both Intel and Apple Silicon chips, making it multi-platform. You can find more info at https://github.com/drpayyne/warden-multi-arch. Currently, only the one mainstream version of each service is rebuilt and provided. I have rebuilt all necessary Dockerfiles as multi-platform Docker images ( Warden services
Magento 2 services
|
@drpayyne That's exciting! I'm looking forward to getting an M1 Macbook Pro once they're released (hopefully later this year) and will look into your fork at that time. |
The fork from @drpayyne works fine for except xdebug, but there is already a pull request. Would be nice if you'd can consider to add the fork as an m1 version for warden or so |
@DavidLambauer Just merged and rebuilt the Docker images. Thank you! |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Still valid, yes. |
Maybe you want to have a look at #501. |
All the magento commands in Warden are very, very slow on my M1 Pro and also the online store is slow. Do you know what could be the reason? |
This project is not maintained anymore. Feel free to migrate to den --> https://github.com/swiftotter/den den is a fork from warden, providing a faster, maintained version of warden! |
You can also give https://github.com/rewardenv/reward a try. It's Warden rewritten in Golang. Find the complete documentation here: https://rewardenv.readthedocs.io |
New Apple silicon images in Beta: https://github.com/orgs/wardenenv/discussions/616 |
Hi. Is it safe to migrate from Warden https://github.com/drpayyne/warden-multi-arch to Den using standard method described in documentation? https://swiftotter.github.io/den/changelog.html |
@pawel-snowdog You can use Warden 0.13 or greater and run it on an M1 mac. Den has since been deprecated in favor of Warden. Not all Den features have been ported over, but it's being worked on. |
@bap14 thx for info. Is there php8.2 and OpenSearch support in Warden newest release? |
Warden package versions are available to browse both on Docker Hub and on GitHub: https://github.com/orgs/wardenenv/packages?repo_name=images Latest PHP: 8.2 I check for newer versions of all needed softwares semi-often |
@pawel-snowdog I highly recommended moving to https://github.com/wardenenv/warden/, as @navarr is doing a great job maintaining it. Our team has moved from both Den and the https://github.com/drpayyne/warden-multi-arch project to Warden without any issue. |
@erikhansen great! Is there documentation how to migrate from https://github.com/drpayyne/warden-multi-arch to https://github.com/wardenenv/warden/ ? |
Quick update - I've now archived the https://github.com/drpayyne/warden-multi-arch repository with a deprecation notice in favor of migrating back to this repository to avoid confusion. |
@drpayyne Awesome. Thanks for your early work in getting Apple Silicon compatibility—that enabled me to buy an M1X MacBook Pro a couple of years ago and enjoy the 2-4x M2 local development performance it offers over my Intel MacBook Pro. |
Huge Appreciation for your work @drpayyne - I couldn't have lived without it ❤️ |
Guys I need Your help with migration from https://github.com/drpayyne/warden-multi-arch to https://github.com/wardenenv/warden/ ? How to do it without loosing existing locals? Many thanks for your replies. |
Thanks folks! Appreciate it. :) And thanks to you both back for the early testing and the continued support for Warden! |
I did not have to do anything special when moving from https://github.com/drpayyne/warden-multi-arch to Warden, but YMMV. Summary of my steps:
|
=====================
Running: MacOs Big Sur 11.2.3
Chip Apple M1
The text was updated successfully, but these errors were encountered: