Skip to content

build: fix devcontainer for arm64 machines #54757

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

Closed
wants to merge 1 commit into from

Conversation

bharath063
Copy link

The devcontainer image is only built for amd64 architecture. This makes it incompatible with arm64 machines like Apple silicon macs.
Adding the --platform=linux/amd64 makes this run on Apple silicon Macs.

This has been tested with Podman on an M1 Max Macbook pro

Also moved the other settings under the more appropriate customizations key as per the devcontainers spec as defined in https://containers.dev/supporting

@bharath063
Copy link
Author

bharath063 commented Sep 4, 2024

@bnb , Can you please have a look when you can find some time 🙂

@avivkeller
Copy link
Member

avivkeller commented Sep 4, 2024

Also see #54347. I've applied your fix and added you as the Co-Author to that PR.

@bharath063
Copy link
Author

Closing this in favor of #54347

@bharath063 bharath063 closed this Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arm Issues and PRs related to the ARM platform.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants