mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 10:10:41 +00:00
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>
This commit is contained in:
parent
507536ddd8
commit
53c216fd07
1 changed files with 15 additions and 0 deletions
|
@ -1,5 +1,20 @@
|
|||
{
|
||||
"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",
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue