unplugged-system/external/crosvm/.devcontainer/default/devcontainer.json

29 lines
930 B
JSON

{
"image": "gcr.io/crosvm-infra/crosvm_dev_user:latest",
"customizations": {
"vscode": {
"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"
}