]> git.lizzy.rs Git - rust.git/blob - src/ci/docker/host-x86_64/x86_64-gnu-tools/Dockerfile
Allow old toolchain on some images
[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 NODE_FOLDER=/node-v14.4.0-linux-x64/bin
69 ENV PATH="$NODE_FOLDER:${PATH}"
70
71 COPY host-x86_64/x86_64-gnu-tools/browser-ui-test.version /tmp/
72
73 # For now, we need to use `--unsafe-perm=true` to go around an issue when npm tries
74 # to create a new folder. For reference:
75 # https://github.com/puppeteer/puppeteer/issues/375
76 #
77 # We also specify the version in case we need to update it to go around cache limitations.
78 #
79 # The `browser-ui-test.version` file is also used by bootstrap to emit warnings in case
80 # the local version of the package is different than the one used by the CI.
81 RUN npm install -g browser-ui-test@$(head -n 1 /tmp/browser-ui-test.version) --unsafe-perm=true
82
83 ENV RUST_CONFIGURE_ARGS \
84   --set llvm.allow-old-toolchain \
85   --build=x86_64-unknown-linux-gnu \
86   --save-toolstates=/tmp/toolstate/toolstates.json
87
88 ENV SCRIPT /tmp/checktools.sh ../x.py && \
89   NODE_PATH=`npm root -g` python3 ../x.py test src/test/rustdoc-gui --stage 2