-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
How can I crosscompile with a MAC M1 for a linux target platform? #1801
Comments
Hey @sergiohinojosa 👋🏽 You can use the following to cross-compile:
That will use |
Hi @julianocosta89 nice to see you! long time no see! hey, thanks for your reply. I was working with a version that did not have the multiplatform builder in the Makefile. I just pulled everything and gave it a try, but unfortunately I'm getting a docker error that does not support exporting manifest lists. See below. Any hints?
Thanks and best |
Question
When I deploy the images/pods built without changing any configuration to a linux system I get an error like the following:
exec ./build/install/opentelemetry-demo-ad-service/bin/AdService: exec format error
If I set as a global environment the default platform to be linux/amd64
DOCKER_DEFAULT_PLATFORM=linux/amd64
then I get an error in the shipping service since this is C++ and has more plattform dependencies.
`
then I tried to live without the shipping service by taking the build out from docker compose but the next svc fails
`
Any hints would be greately appretiated
Sergio
The text was updated successfully, but these errors were encountered: