crosvm/.devcontainer/default/devcontainer.json
Dennis Kempin b0408a9a6b Add devcontainer config for codespaces
This config does not include the privileges of the usual devcontainer.

BUG=None
TEST=Open in github codespaces
Passes both:
cargo test --workspace --lib --bins --features=all-x86_64
tools/run_tests --unit-tests

Change-Id: Ia68b0b4f7baa2be109079909eb023ba4eda5e037
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4015008
Reviewed-by: Zihan Chen <zihanchen@google.com>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
2022-11-09 19:28:15 +00:00

24 lines
808 B
JSON

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