FROM ubuntu:22.04 ENV DEBIAN_FRONTEND=noninteractive RUN \ apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ && apt-get update -y RUN apt-get install -qq \ vim \ curl \ git \ lsb-release \ python3 \ python3-pip \ sudo \ file \ default-jdk \ lldb \ llvm # # Setup dependencies for chromium + v8 # RUN echo Etc/UTC > /etc/timezone RUN echo tzdata tzdata/Areas select Etc | debconf-set-selections RUN echo tzdata tzdata/Zones/Etc UTC | debconf-set-selections RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections WORKDIR /tools RUN git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git ENV PATH="${PATH}:/tools/depot_tools" WORKDIR /setup RUN mkdir -p chromium/src/build WORKDIR /setup/chromium/src RUN curl -s https://chromium.googlesource.com/chromium/src/+/main/build/install-build-deps.sh?format=TEXT | base64 -d > build/install-build-deps.sh RUN chmod u+x build/install-build-deps.sh RUN curl -s https://chromium.googlesource.com/chromium/src/+/main/build/install-build-deps.py?format=TEXT | base64 -d > build/install-build-deps.py RUN chmod u+x build/install-build-deps.py RUN ./build/install-build-deps.sh \ --no-prompt \ --no-chromeos-fonts \ --no-arm \ --no-syms \ --no-nacl \ --no-backwards-compatible RUN cp /usr/bin/tar /usr/bin/tar-orig RUN rm /usr/bin/tar COPY static/tar-shim.sh /usr/bin/tar RUN chmod u+rwx /usr/bin/tar WORKDIR /app RUN fetch v8 WORKDIR /app/v8 RUN gclient sync RUN tools/dev/gm.py x64.debug # # Setup codeql # WORKDIR /tools RUN curl -L0 https://github.com/github/codeql-action/releases/download/codeql-bundle-v2.16.1/codeql-bundle-linux64.tar.gz --output codeql-bundle-linux64.tar.gz RUN tar -xzf codeql-bundle-linux64.tar.gz RUN rm codeql-bundle-linux64.tar.gz ENV PATH="$PATH:/tools/codeql" # # Build codeql database for v8 # WORKDIR /app/v8/out/x64.debug/ RUN codeql database create v8.db --language=cpp WORKDIR /app