Repository navigation
Conversation
Co-authored-by: poshul <[email protected]>
Copilot
AI
changed the title
[WIP] Update Devcontainer to support arm64 architecture
Support arm64 architecture in devcontainer
Feb 4, 2026
poshul
requested changes
Feb 4, 2026
| @@ -0,0 +1,6 @@ | |||
| # Select the correct base image based on architecture | |||
| ARG TARGETARCH | |||
Collaborator
There was a problem hiding this comment.
This does not work. TARGETARCH is blank when I test this locally.
Contributor
Author
There was a problem hiding this comment.
Fixed in commit 4a17897. The Dockerfile now provides a default value (amd64) when TARGETARCH is blank, which happens when BuildKit is not enabled.
For ARM64/Apple Silicon, you can manually set the architecture in .devcontainer/devcontainer.json:
"build": {
"dockerfile": "Dockerfile",
"args": {
"TARGETARCH": "arm64"
}
}See the new .devcontainer/README.md for detailed setup instructions and troubleshooting steps.
Co-authored-by: poshul <[email protected]>
4 tasks
Contributor
|
Superseded by #8862 which simplifies the implementation to a minimal 6-line Dockerfile without the non-functional multi-stage build. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The devcontainer was hardcoded to
ghcr.io/openms/contrib_manylinux_2_34:latest-amd64, preventing use on arm64 systems (e.g., Apple Silicon).Changes
.devcontainer/Dockerfile: Uses Docker BuildKit'sTARGETARCHvariable with a default fallback toamd64to select the correct base image (latest-amd64orlatest-arm64).devcontainer/devcontainer.json: Changed fromimageproperty tobuild.dockerfileconfiguration.devcontainer/README.md: Comprehensive documentation with setup instructions for ARM64/Apple Silicon users and troubleshooting guideImplementation
The Dockerfile leverages BuildKit's platform detection with a fallback default:
TARGETARCHtoamd64orarm64based on the host architectureamd64The solution works in environments where BuildKit is not enabled, addressing compatibility issues across different Docker configurations. ARM64/Apple Silicon users can follow the instructions in the README to manually configure their architecture if automatic detection doesn't work.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.