-
Notifications
You must be signed in to change notification settings - Fork 382
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
Impossible to install with docker for mac M1 (linux/arm64/v8) #431
Comments
I'm going to move this issue over to our docker images repo, because I think this is an issue with our docker images and not our actual Cypress product. |
Any news on this? |
No 😥 |
@jennifer-shehane I feel it may be a good idea to bump this issue up in priority or at least move it over as you mentioned. I'm also getting this on a brand new MacBook Pro 13 with M1 chip. I can run cypress fine on it, just not via the Dockerfile example provided at https://hub.docker.com/r/cypress/base/ |
@bahmutov any update re moving and/or looking in this btw? #431 (comment) |
I was able to create a custom Docker image that builds cypress on that arch, but there's one problem Cypress hardcodes the build dir name here https://github.com/cypress-io/cypress/blob/master/scripts/binary/meta.js#L40 If I change that line, everything works fine. So I don't know if I missed something, or if we need to adapt that |
@tarekziade do I just need to change that line in node_modules? |
same issue 😨 |
I've just changed it in the |
@tarekziade can you please be more specific? Do I need to clone the repository, change the file, build the binary? Or just change it in node_modules? |
hey all, is there any update for this thread? |
Wanted to link to our blog post concerning running Cypress on M1 https://cypress.io/blog/2021/01/20/running-cypress-on-the-apple-m1-silicon-arm-architecture-using-rosetta-2/ |
We're open to a pull request to update the build dir name in the |
I created this PR with the changes mentioned on the comment above. @tarekziade, could you please review? |
For anyone landing here, the PR that @guilhermestorck opened was closed: cypress-io/cypress#16530 (comment). So a PR is still needed. |
I just want to confirm, that we have the same issue we tried the 7.6.0 included Docker image and got this error
|
Cypress without Docker works fine on M1 |
I can confirm this issue as well, would be nice to get it fixed. If I understand correctly this is nothing more then adding a flag to the compiler options somewhere within this image? |
Does anyone know if this issue is being addressed? |
I think the main problem is that their CI (Travis CI) doesn't support M1 yet. |
I'm also facing this issue with Cypress on an M1 via Docker. |
Any progress on this? |
A lot of devs use Macs... M1's were released in Nov 2020. This issue was opened a couple months later. It has now been almost a year. Please fix this. |
|
I'm trying to put together a solution for this. |
Same issue here!!! Any progress??? |
Hello, I checked with which Browser tests were run on, and one is Electron 93 (cypress official image, left part of the image) and the cypress m1 is using Electron 94 (right part of the image). Tho I do not think this could cause the difference. Do you have any ideas or hints of what could be the root cause of this slight difference? @webnexusmobile you mentioned |
jFYI: Looks like Chrome is finally going to be running fine on aarch64 with 16kb page size (which is required for running on Apple Silicon/M1 in Docker on macOS): https://chromium-review.googlesource.com/c/chromium/src/+/3545665 |
Anyone try to build a linux/amd64 cypress docker container on an Apple M1 host and been successful? All the solutions above are using arm64 platform within the docker container itself and building it on an Apple M1. A more common scenario would be developing an application on a M1 machine and running it in production under amd64. Wouldn't it make more sense for containers to be built and ran with amd64 arch locally to ensure same environment? This is the route I was trying to take, but getting the same error. |
Have you found a solution? I'm having the same problem :( |
Same issue here :( I have this as the first line in my Dockerfile
and I get the |
Based on @pladaria 's comment, I updated the chromium version and pushed to docker hub. https://hub.docker.com/repository/docker/adamgoldman/cypress-m1
Let me know if you run into any issues |
I tried to use your image but having this error when running cypress:
My Dockerfile:
|
Has anyone published an m1 image working with cypress 10 already? Not to duplicate any existing image |
@goldylucks My Dockerfile:
Output:
|
I am trying to run the cypress/included 10.2.0. and get that qemu core dump error on my M1. I thought 10.2.0 was built natively on M1/arm?
|
@flotwig Awesome work on cypress-io/cypress#22252 !! 😍 I see it's merged into |
Hi folks, our automations have been updated to issue |
Going forward, all new images will have If you encounter any issues specific to the The only known issue at this time is that Electron is the only available browser on these images. See #695 for details. |
I'm trying to use the
|
Hey @desprit, I haven't been able to reproduce this on my system, cross-building for arm64 from x64. Are you trying to cross-build an image without https://github.com/tonistiigi/binfmt? Otherwise, can you please open a new issue to track this? |
@flotwig I'm on m1 and ideally would like to build for a regular ubuntu which I assume is linux-x64, because that's what runs on our CI servers. I tried different options just to see how it goes and results are:
No, I'm not using binfmt, have never heard of it! |
@desprit maybe try setting up If you're not running Cypress in the emulation layer but you're still having this problem, can you open a new issue with your Dockerfile and the command you're running? I can try to repro on my M1, but I haven't been able to cause this error yet with what I've tried. I'm going to lock this thread since |
When i try to install cypress from cypress/base:14.15.0 docker image it fails with this message
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
This is the stack trace
Download method
Operating System
Other
Can you help me please?
The text was updated successfully, but these errors were encountered: