-
Notifications
You must be signed in to change notification settings - Fork 234
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 run via Docker on M1 Mac #1888
Comments
Hi @dabernathy89, The dockerfile is located here, and the issue is most likely triggered by the reload on change setting here My suggestion for you would be to set the value to false/remove it, build the image locally and see whether that solves the issue. I don't think we need reload on change enabled since Kiota is a CLI and all processes are short lived anyway. Thanks a lot! |
This comment was marked as outdated.
This comment was marked as outdated.
Reopening this as it seems this is still an issue from internal feedback. We also need to setup a multi-platform build of the image https://docs.docker.com/build/building/multi-platform/
|
update: I have put a PR together to remove the barriers as well as enable multi-platform images. Before I merge it, if somebody with an M1 could try to run |
Update: thanks to @kevinswiber 's help it seems that we're affected by this, and it's because the base dotnet image is not a true arm64 variant The solution would be to either downgrade to net6 with all the compatibility and performance implications (new linq methods, vectorialization, etc...) or conditionally build on with a different base more resources: https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/ |
update: @kevinswiber was instrumental to finding the solution to this issue. Just merged the corresponding PR, releasing soon. :) |
The command I'm running:
The output:
The text was updated successfully, but these errors were encountered: