Comments (6)
I solve ui deployment by a dockerfile
FROM debian:latest
RUN set -ex; \
export DEBIAN_FRONTEND=noninteractive; \
echo deb http://deb.debian.org/debian buster-backports main > \
/etc/apt/sources.list.d/backports.list; \
apt-get update; \
apt-get -y install python git curl sudo lz4 tar ccache tini libpulse0 \
libgl1 libxml2 libc6-dev-i386 libtinfo5 gnupg2 \
pkg-config zip g++ zlib1g-dev unzip python3 \
python-distutils-extra python3-distutils; \
apt-get -y install gcc-7 g++-7; \
gcc-7 --version; \
g++-7 --version; \
apt-get -y -t buster-backports install clang-8; \
clang-8 --version; \
clang++-8 --version; \
curl https://bootstrap.pypa.io/get-pip.py | python -; \
pip install --quiet protobuf; \
curl https://bootstrap.pypa.io/get-pip.py | python3 -; \
pip3 install --quiet protobuf; \
curl -LO https://github.com/bazelbuild/bazel/releases/download/0.29.1/bazel-0.29.1-installer-linux-x86_64.sh; \
chmod +x bazel-*-installer-linux-x86_64.sh; \
./bazel-*-installer-linux-x86_64.sh; \
rm bazel-*-installer-linux-x86_64.sh; \
bazel version; \
useradd -d /ci/ramdisk perfetto; \
apt-get -y autoremove; \
rm -rf /var/lib/apt/lists/* /usr/share/man/* /usr/share/doc/*;
RUN mkdir workpath
WORKDIR /workpath
COPY perfetto ./perfetto
WORKDIR /workpath/perfetto
RUN tools/install-build-deps --ui
RUN tools/gn gen out/debug --args='is_debug=true'
RUN tools/ninja -C out/debug ui
ENTRYPOINT [ "./ui/run-dev-server", "out/debug" ]
from perfetto.
by default the container will run the CI harness, which assumes a bunch of ENV vars are set.
Just override the entry point and run bash -i so you get into interactive mode.
$ docker run -it -u perfetto eu.gcr.io/perfetto-ci/sandbox bash -i
from perfetto.
After start the images and enter container, how to start the ui part.
from perfetto.
Follow the instruction as usual:
https://perfetto.dev/docs/contributing/build-instructions
git clone
...
install-build-deps
tools/ninja -C out/android ui
When you get to the run-web-server part, you'll need to export port 10000 from the container (so docker run needs an extra -P 10000 or something like that)
from perfetto.
anyhow, we just up-revved node and npm.
Before you jump too deep into this docker thing, can you try syncing @ HEAD and see if the original issue went away?
It seems fixed for us.
from perfetto.
still there are multiple error with npm.
npm ERR! [email protected] install: `node-gyp-build`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
from perfetto.
Related Issues (20)
- Duplicate queries are being run when loading counter tracks HOT 4
- process_sort_index support or alternative suggestions HOT 1
- How to update interned data after the first packet has been flushed? HOT 1
- Let users set the displayed time range HOT 2
- Slow track loading of rate type counters HOT 2
- Support for stacked counters HOT 2
- Steps necessary for Cuda kernel event tracking. HOT 1
- Request: support Hide process HOT 1
- After converting to systrace, the customized log cannot be saved. HOT 2
- Standalone Bazel build broken after switch to Python tables HOT 3
- BatchTraceProcessor FileNotFoundError: [Errno 2] No such file or directory: '.local/share/perfetto/prebuilts/trace_processor_shell.tmp' on first run HOT 2
- How to disable tracing when not needed? HOT 1
- Poll SwapPss in /proc/smaps_rollup HOT 3
- feature: deobfuscating track names HOT 6
- Compile trace protobuf for Python HOT 2
- The Android log was truncated "..." with fixed width of the display area HOT 1
- Compiling with Bazel is broken on Windows HOT 8
- How do I avoid counters from displaying as deltas? HOT 7
- The recent updates seem to not support regular expression search. HOT 4
- Cannot write track events with custom datasource HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from perfetto.