crosvm/tools
Christian Blichmann 1a2cfa90c3 dev_container: Improve support for podman
Commit 95b80d1 made the dev container persistent between invocations,
but hard-coded `docker` again. This change fixes that and also adds
further improvements:
- Do not use `--privileged` with podman. If the rootless user has
  permissions to access `/dev/kvm`, so will the container.
- Map `/dev/vhost-net` and `/dev/vhost-vsock` as well.
- Use `BASH_SOURCE` to find this script's directory. As we're using Bash
  to start with, this is more robust than using plain `$0`.

BUG=None
TEST=Run `./tools/dev_container cargo build` with Podman and Docker

Change-Id: I05c699f327c8e1c4f3c4df9679ee92bf7e609e2e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3295372
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Christian Blichmann <cblichmann@google.com>
2021-11-23 08:41:17 +00:00
..
chromeos tools: chromeos: Use relative path to Cargo.toml in setup_cargo 2021-11-15 18:18:18 +00:00
contrib enumn: switch to upstream crates.io version 2021-11-15 21:03:25 +00:00
impl test_runner Use workspace for building and testing 2021-11-19 20:09:38 +00:00
aarch64vm testvm: Use prebuilts instead of building on-the-fly 2021-10-15 22:02:24 +00:00
clippy Enable clippy on more workspace crates 2021-11-15 23:55:42 +00:00
dev_container dev_container: Improve support for podman 2021-11-23 08:41:17 +00:00
fmt ./tools/presubmit: Parallel execution and use dev container 2021-11-19 20:09:40 +00:00
install-aarch64-deps Add new dev container and install-deps scripts 2021-10-15 22:12:02 +00:00
install-armhf-deps Add new dev container and install-deps scripts 2021-10-15 22:12:02 +00:00
install-deps crosvm: Add python3-pip dependency. 2021-11-01 23:58:39 +00:00
presubmit ./tools/presubmit: Parallel execution and use dev container 2021-11-19 20:09:40 +00:00
run_tests Add test runner ./tools/run_tests 2021-10-15 22:12:03 +00:00
set_test_target Add test runner ./tools/run_tests 2021-10-15 22:12:03 +00:00
x86vm testvm: Use prebuilts instead of building on-the-fly 2021-10-15 22:02:24 +00:00