Giter VIP home page Giter VIP logo

Comments (6)

koeichen avatar koeichen commented on May 14, 2024 1

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.

primiano avatar primiano commented on May 14, 2024

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.

koeichen avatar koeichen commented on May 14, 2024

After start the images and enter container, how to start the ui part.

from perfetto.

primiano avatar primiano commented on May 14, 2024

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.

primiano avatar primiano commented on May 14, 2024

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.

koeichen avatar koeichen commented on May 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.