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