crosvm/.devcontainer/devcontainer.json
Dennis Kempin 53c216fd07 Make vscode devcontainer usable
The container was pretty much untested. Now that vscode supports dev
containers via SSH I got to test this properly.

This provides a workable dev environment out of the box.
./tools/presubmit passes and
common extensions for rust, python and bash are added.

BUG=None
TEST=Open in vscode, re-open in dev container. Run ./tools/presubmit

Change-Id: I542f3d26c29c4051000e6ec8b81d77d297bcad7d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3402447
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
2022-01-25 21:30:49 +00:00

20 lines
557 B
JSON

{
"image": "gcr.io/crosvm-packages/crosvm_dev:latest",
"extensions": [
"matklad.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",
]
}