mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 13:23:08 +00:00
971589f7ec
This change makes using docker a bit easier when displaying on the hosts X11 server. The biggest change was that build_crosvm.sh will install the hosts NVIDIA proprietary driver if needed. TEST=docker/build_crosvm.sh docker/crosvm_wrapper.sh BUG=None Change-Id: If64074715b0ad3a06727a4cc764d3ac06c4dfece Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1759139 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Tested-by: Zach Reizner <zachr@chromium.org> Commit-Queue: Zach Reizner <zachr@chromium.org>
22 lines
538 B
Bash
Executable file
22 lines
538 B
Bash
Executable file
#!/bin/bash
|
|
# Copyright 2019 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 -ex
|
|
|
|
# grab the pwd before changing it to this script's directory
|
|
pwd="${PWD}"
|
|
|
|
cd "${0%/*}"
|
|
|
|
exec docker run -it --rm \
|
|
--privileged \
|
|
--ipc=host \
|
|
-e DISPLAY=$DISPLAY -e XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR \
|
|
-v /dev/log:/dev/log \
|
|
-v /tmp/.X11-unix:/tmp/.X11-unix:rw \
|
|
--volume "$pwd":/wd \
|
|
--workdir /wd \
|
|
crosvm \
|
|
"$@"
|