mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-09 03:57:24 +00:00
94de30aea3
Fix permission issue when dev container is launched in vscode. see: crrev/c/3855471/comments/3ee66fdb_46268f20 TEST=dev container from vscode can rust analyzer Change-Id: Ia5e8f213bf7ab8e5826dca21a6ef3846ff841b92 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3884301 Reviewed-by: Dennis Kempin <denniskempin@google.com> Commit-Queue: Zihan Chen <zihanchen@google.com>
24 lines
803 B
JSON
24 lines
803 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 /cache /scratch",
|
|
"postCreateCommand": "sudo chmod 666 /dev/kvm",
|
|
}
|