]> git.lizzy.rs Git - rust.git/blob - src/ci/docker/host-x86_64/x86_64-gnu-tools/Dockerfile
Rollup merge of #87130 - GuillaumeGomez:update-browser-ui-test, r=Mark-Simulacrum
[rust.git] / src / ci / docker / host-x86_64 / x86_64-gnu-tools / Dockerfile
1 FROM ubuntu:16.04
2
3 RUN apt-get update && apt-get install -y --no-install-recommends \
4   g++ \
5   make \
6   ninja-build \
7   file \
8   curl \
9   ca-certificates \
10   python3 \
11   git \
12   cmake \
13   libssl-dev \
14   sudo \
15   xz-utils \
16   tidy
17
18 # Install dependencies for chromium browser
19 RUN apt-get install -y \
20   gconf-service \
21   libasound2 \
22   libatk1.0-0 \
23   libatk-bridge2.0-0 \
24   libc6 \
25   libcairo2 \
26   libcups2 \
27   libdbus-1-3 \
28   libexpat1 \
29   libfontconfig1 \
30   libgcc1 \
31   libgconf-2-4 \
32   libgdk-pixbuf2.0-0 \
33   libglib2.0-0 \
34   libgtk-3-0 \
35   libnspr4 \
36   libpango-1.0-0 \
37   libpangocairo-1.0-0 \
38   libstdc++6 \
39   libx11-6 \
40   libx11-xcb1 \
41   libxcb1 \
42   libxcomposite1 \
43   libxcursor1 \
44   libxdamage1 \
45   libxext6 \
46   libxfixes3 \
47   libxi6 \
48   libxrandr2 \
49   libxrender1 \
50   libxss1 \
51   libxtst6 \
52   fonts-liberation \
53   libappindicator1 \
54   libnss3 \
55   lsb-release \
56   xdg-utils \
57   wget
58
59 COPY scripts/sccache.sh /scripts/
60 RUN sh /scripts/sccache.sh
61
62 COPY scripts/cmake.sh /scripts/
63 RUN /scripts/cmake.sh
64
65 COPY host-x86_64/x86_64-gnu-tools/checktools.sh /tmp/
66
67 RUN curl -sL https://nodejs.org/dist/v14.4.0/node-v14.4.0-linux-x64.tar.xz | tar -xJ
68 ENV PATH="/node-v14.4.0-linux-x64/bin:${PATH}"
69
70 # For now, we need to use `--unsafe-perm=true` to go around an issue when npm tries
71 # to create a new folder. For reference:
72 # https://github.com/puppeteer/puppeteer/issues/375
73 #
74 # We also specify the version in case we need to update it to go around cache limitations.
75 RUN npm install -g browser-ui-test@0.4.2 --unsafe-perm=true
76
77 ENV RUST_CONFIGURE_ARGS \
78   --build=x86_64-unknown-linux-gnu \
79   --save-toolstates=/tmp/toolstate/toolstates.json
80
81 ENV SCRIPT /tmp/checktools.sh ../x.py && \
82   NODE_PATH=`npm root -g` python3 ../x.py test src/test/rustdoc-gui --stage 2