mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-28 17:44:10 +00:00
e577c91efc
Since we default to podman, we can get rid of the _user container and run as root inside the container, which greatly simplifies the tooling. This also allows us to provide a single, default devcontainer.json for local development as well as codespaces. podman can be used with this devcontainer.json as well, e.g. in VSCode by setting: "dev.containers.dockerPath": "podman" The with_kvm/devcontainer.json can be used to add access to kvm, which may not be available on all machines. So it's an optional config. BUG=b:273529620 TEST=Open with devcontainer in VSCode with both docker and podman, run `presubmit --no-delta` TEST=tools/dev_container tools/presubmit --no-delta Change-Id: I10e04898a0e1adb6e4939f6f2e0259dc9b9aa62d Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4419666 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Zihan Chen <zihanchen@google.com> Commit-Queue: Dennis Kempin <denniskempin@google.com>
20 lines
560 B
JSON
20 lines
560 B
JSON
{
|
|
"image": "gcr.io/crosvm-infra/crosvm_dev:latest",
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"rust-lang.rust-analyzer",
|
|
"bungcip.better-toml",
|
|
"esbenp.prettier-vscode",
|
|
"ms-python.vscode-pylance",
|
|
"foxundermoon.shell-format",
|
|
"timonwong.shellcheck"
|
|
]
|
|
}
|
|
},
|
|
"runArgs": [
|
|
// Allow a higher PID limit since we launch a lot of test processes.
|
|
"--pids-limit=4096"
|
|
],
|
|
"updateContentCommand": "git config --global --add safe.directory '*' && git submodule update --init"
|
|
}
|