-
Notifications
You must be signed in to change notification settings - Fork 71
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
devcontainer build fixups for macOS clients #874
Merged
bpkroth
merged 24 commits into
microsoft:main
from
bpkroth:fixup-dev-container-for-mac-os
Oct 21, 2024
Merged
devcontainer build fixups for macOS clients #874
bpkroth
merged 24 commits into
microsoft:main
from
bpkroth:fixup-dev-container-for-mac-os
Oct 21, 2024
Conversation
This file contains 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
mmm, I am afraid it still does not work on Mac. Here's the full trace:
|
This reverts commit 2d88dfb.
MacOS sets the /var/run/docker.sock as a symlink to a spot in the user's home directory. The group id on the symlink is 1 (daemon) but the group id of /var/run/docker.sock inside the actual docker VM on MacOS is 0 (root).
…e isn't present in this version of sh
motus
approved these changes
Oct 18, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works on my Mac now! Will check it on Windows soon and post here
bpkroth
commented
Oct 21, 2024
Note: this enables the devcontainer for MacOS, but the tests don't pass. Will address this in a future PR (e.g., #875). |
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.
Pull Request
Title
Fixups to the devcontainer build for macOS clients.
Description
Use a more portalable random number generator
Address some differences in docker.sock privileges.
Address differences in
stat
arguments.Switch to wget mode for conda installation to workaround lack of arm64 apt repo.
When pulling base images to prime cache, use the appropriate architecture (for Windows we only support amd64 for now).
Remove
:latest
fromcache-from
args forpodman
compliance.Address some differences in
sed
syntax.Fixes DevContainer fails to start on VSCode + MacOS #873
Type of Change
Testing
Additional Notes
Doesn't currently do builds for arm64 platform in the pipeline.
Can work towards addressing that in the future.