-
Notifications
You must be signed in to change notification settings - Fork 977
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
Can't build 5.0 image on M1 Mac #465
Comments
I see now progressing the install I get this #11 52.97
#11 52.97 2021-06-15 14:40:33 (593 KB/s) - ‘amazon-ssm-agent.deb’ saved [31597536/31597536]
#11 52.97
#11 52.98 + dpkg -i amazon-ssm-agent.deb
#11 53.03 dpkg: error processing archive amazon-ssm-agent.deb (--install):
#11 53.03 package architecture (amd64) does not match system (arm64)
#11 53.04 Errors were encountered while processing:
#11 53.04 amazon-ssm-agent.deb
------
executor failed running [/bin/sh -c set -ex && mkdir /tmp/ssm && cd /tmp/ssm && wget https://s3.amazonaws.com/amazon-ssm-us-east-1/2.3.1644.0/debian_amd64/amazon-ssm-agent.deb && dpkg -i amazon-ssm-agent.deb]: exit code: 1 so perhaps the issue is really my M1 architecture, but it's not clear from the previous error output? I'll try to build on Linux, no big deal |
You may be able to build it using the platform flag, e.g.: |
Thanks but if I do that I won't be able to run them on my mac right, which was the whole point of this exercise. I am sort of giving up on using docker on mac M1 right now, it adds too much complexity to my workflow. I started using https://bigdevbox.com/ and I can build there docker on the target architecture without too much hassle. Thanks for your help |
Docker on Mac uses the Apple Hypervisor Framework, and is capable of both building and running cross-platform images: https://docs.docker.com/docker-for-mac/apple-silicon/ |
Adding this flag and running the following made me build successfully, thanks @josephvusich :
|
Running this on M1 Been running for 5+ hours. |
Moving all Mac build failures reported to one issue: #575. |
Hi, this issue #439 needs reopening, or rather, it was misunderstood. I can't build the 5.0 image locally (on a mac m1, if that matters)
If I comment out the google-chrome bit on the dockerfile everything is fine.
The text was updated successfully, but these errors were encountered: