3 RUN apt-get update && apt-get install -y --no-install-recommends \
17 # Install dependencies for chromium browser
18 RUN apt-get install -y \
58 COPY scripts/sccache.sh /scripts/
59 RUN sh /scripts/sccache.sh
61 COPY scripts/cmake.sh /scripts/
64 COPY host-x86_64/x86_64-gnu-tools/checktools.sh /tmp/
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}"
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
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
76 ENV RUST_CONFIGURE_ARGS \
77 --build=x86_64-unknown-linux-gnu \
78 --save-toolstates=/tmp/toolstate/toolstates.json
80 ENV SCRIPT /tmp/checktools.sh ../x.py && \
81 NODE_PATH=`npm root -g` python3 ../x.py test src/test/rustdoc-gui --stage 2