1#!/bin/bash 2# Copyright 2019 The Chromium OS Authors. All rights reserved. 3# Use of this source code is governed by a BSD-style license that can be 4# found in the LICENSE file. 5 6# This script is to be run on the KVM host, outside the container 7 8set -ex 9 10# grab the pwd before changing it to this script's directory 11pwd="${PWD}" 12 13cd "${0%/*}" 14 15exec docker run -it --rm \ 16 --privileged \ 17 --ipc=host \ 18 -v /dev/log:/dev/log \ 19 -v /dev/vhost-net:/dev/vhost-net \ 20 -v /sys/kernel/debug:/sys/kernel/debug \ 21 --volume "$pwd":/wd \ 22 --workdir /wd \ 23 -p 127.0.0.1:10000:10000/tcp \ 24 --entrypoint /usr/local/run_perfetto_ui.sh \ 25 mesa 26