Paula Toth | 270b528 | 2020-03-12 00:34:32 | [diff] [blame] | 1 | FROM debian:10 |
| 2 | |
Kazuaki Ishizaki | 0570de7 | 2020-04-06 07:18:55 | [diff] [blame^] | 3 | # Installing dependencies. |
Paula Toth | 270b528 | 2020-03-12 00:34:32 | [diff] [blame] | 4 | RUN dpkg --add-architecture i386 |
| 5 | RUN apt-get update |
| 6 | RUN apt-get install -y build-essential clang subversion git vim \ |
| 7 | zip libstdc++6:i386 file binutils-dev binutils-gold cmake python-pip \ |
| 8 | ninja-build |
| 9 | RUN python -m pip install buildbot-slave==0.8.12 |
| 10 | |
Kazuaki Ishizaki | 0570de7 | 2020-04-06 07:18:55 | [diff] [blame^] | 11 | # Temporary dependencies for AOR tests. |
Paula Toth | a9e05d5 | 2020-03-18 00:42:39 | [diff] [blame] | 12 | RUN apt-get install -y libmpfr-dev libmpc-dev |
| 13 | |
Paula Toth | 270b528 | 2020-03-12 00:34:32 | [diff] [blame] | 14 | # Change linker to gold. |
| 15 | RUN update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.gold" 20 |
| 16 | |
| 17 | # Create and switch to buildbot user. |
| 18 | RUN useradd buildbot --create-home |
| 19 | USER buildbot |
| 20 | |
| 21 | WORKDIR /home/buildbot |
| 22 | |
| 23 | # Use clang as the compiler. |
| 24 | ENV CC=/usr/bin/clang |
| 25 | ENV CXX=/usr/bin/clang++ |
| 26 | |
| 27 | ENV WORKER_NAME="libc-x86_64-debian" |
| 28 | |
| 29 | # Set up buildbot host and maintainer info. |
| 30 | RUN mkdir -p "${WORKER_NAME}/info/" |
| 31 | RUN bash -c "(uname -a ; \ |
| 32 | gcc --version | head -n1 ; ld --version \ |
| 33 | | head -n1 ; cmake --version | head -n1 ) > ${WORKER_NAME}/info/host" |
| 34 | RUN echo "Paula Toth <[email protected]>" > "${WORKER_NAME}/info/admin" |
| 35 | |
| 36 | ADD --chown=buildbot:buildbot run.sh . |
| 37 | ENTRYPOINT ["./run.sh"] |