mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-09 03:57:24 +00:00
Container shell now defaults to user `crosvmdev` which will have same UID & GID as outside user. VS Code Remote Containers extension has the same behavior when loading config from devcontainer.json. TEST=all tests pass in container, new files in container have same permission as files created outside. FIXED=b:239476013 Change-Id: Ib3c696509e9ea45edd5f02ff025d9477576ec765 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3814094 Auto-Submit: Zihan Chen <zihanchen@google.com> Reviewed-by: Dennis Kempin <denniskempin@google.com> Tested-by: Zihan Chen <zihanchen@google.com> Commit-Queue: Dennis Kempin <denniskempin@google.com>
24 lines
787 B
JSON
24 lines
787 B
JSON
{
|
|
"image": "gcr.io/crosvm-infra/crosvm_dev:r0019",
|
|
"extensions": [
|
|
"rust-lang.rust-analyzer",
|
|
"bungcip.better-toml",
|
|
"esbenp.prettier-vscode",
|
|
"ms-python.vscode-pylance",
|
|
"foxundermoon.shell-format",
|
|
"timonwong.shellcheck",
|
|
],
|
|
"runArgs": [
|
|
"--privileged",
|
|
"--device=/dev/kvm",
|
|
"--volume=/dev/log:/dev/log",
|
|
"--device=/dev/net/tun",
|
|
"--device=/dev/vhost-net",
|
|
"--device=/dev/vhost-vsock",
|
|
"--mount=type=tmpfs,destination=/tmp",
|
|
"--mount=type=tmpfs,destination=/var/empty",
|
|
],
|
|
"containerUser": "crosvmdev",
|
|
"updateContentCommand": "sudo chown -R --reference=/workspaces/crosvm /home/crosvmdev",
|
|
"postCreateCommand": "sudo chmod 666 /dev/kvm",
|
|
}
|