Skip to content
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

On darwin/arm64 force docker to pull amd64 image #14552

Merged
merged 1 commit into from
Nov 29, 2024

Conversation

jbicker
Copy link
Contributor

@jbicker jbicker commented Nov 28, 2024

What it does

Using dev containers on a Mac with ARM architecture is currently only possible by pulling an image for AMD64 architecture.
This workaround checks respective combination (darwin/arm64) and forces Docker to pull a AMD64 image.
Note: DevContainer could work a bit slow but at least it will.

How to test

Get yourself a Mac with at least a M1 chip. :-)
Start theia as Electron app and connect to a dev container.

Review checklist

Reminder for reviewers

@jbicker jbicker requested review from msujew and jonah-iden November 28, 2024 12:59
@jbicker
Copy link
Contributor Author

jbicker commented Nov 28, 2024

cc.: @JonasHelming

@jbicker jbicker changed the title On darwin/arm64 force to use amd64 image On darwin/arm64 force docker to pull amd64 image Nov 28, 2024
Copy link
Contributor

@jonah-iden jonah-iden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't test since im on windows, but i saw it works and looks good to me

@@ -167,6 +167,8 @@ export class RemoteSetupService {
arch = 'x64';
} else if (archResult.match(/i\d83/)) { // i386, i483, i683
arch = 'x86';
} else if (archResult.includes('aarch64')) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we even still need this? But i guess it can't hurt to already have it for whenwe get the arm64 dependencies

@jbicker jbicker merged commit 2078cdf into master Nov 29, 2024
11 checks passed
@jbicker jbicker deleted the use-amd64-image-for-darwin-arm64 branch November 29, 2024 11:18
@github-actions github-actions bot added this to the 1.57.0 milestone Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants