mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 18:20:34 +00:00
c4ec996103
The new container just provides a standard debian box with a rust toolchain. Installation of dependencies has been extracted into scripts which can also be used to set up a machine for development. This will replace the current ./ci/ containers. BUG=b:199950887,b:199950423 TEST=./tools/dev_container ./tools/run_tests Change-Id: I832bc5b129246923df937a34614b4d74955304dc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3221781 Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Dennis Kempin <denniskempin@google.com> Reviewed-by: Junichi Uekawa <uekawa@chromium.org>
27 lines
611 B
Bash
Executable file
27 lines
611 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Copyright 2021 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
set -e
|
|
cd "$(dirname $0)/.."
|
|
|
|
docker_args=(
|
|
--rm
|
|
--volume $(pwd):/workspace:rw
|
|
--device /dev/net/tun
|
|
--device /dev/kvm
|
|
--volume /dev/log:/dev/log
|
|
--privileged
|
|
)
|
|
|
|
# Enable interactive mode when running in an interactive terminal.
|
|
if [ -t 1 ]; then
|
|
docker_args+=(-it)
|
|
fi
|
|
|
|
docker run \
|
|
${docker_args[@]} \
|
|
gcr.io/crosvm-packages/crosvm_dev:$(cat tools/impl/dev_container/version) \
|
|
"$@"
|
|
|