blob: c5edd1ac36a7a92882460862cec57f217a08203e [file] [log] [blame]
Paula Toth270b5282020-03-12 00:34:321FROM debian:10
2
Kazuaki Ishizaki0570de72020-04-06 07:18:553# Installing dependencies.
Paula Toth270b5282020-03-12 00:34:324RUN dpkg --add-architecture i386
5RUN apt-get update
6RUN 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
9RUN python -m pip install buildbot-slave==0.8.12
10
Kazuaki Ishizaki0570de72020-04-06 07:18:5511# Temporary dependencies for AOR tests.
Paula Totha9e05d52020-03-18 00:42:3912RUN apt-get install -y libmpfr-dev libmpc-dev
13
Paula Toth270b5282020-03-12 00:34:3214# Change linker to gold.
15RUN update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.gold" 20
16
17# Create and switch to buildbot user.
18RUN useradd buildbot --create-home
19USER buildbot
20
21WORKDIR /home/buildbot
22
23# Use clang as the compiler.
24ENV CC=/usr/bin/clang
25ENV CXX=/usr/bin/clang++
26
27ENV WORKER_NAME="libc-x86_64-debian"
28
29# Set up buildbot host and maintainer info.
30RUN mkdir -p "${WORKER_NAME}/info/"
31RUN bash -c "(uname -a ; \
32 gcc --version | head -n1 ; ld --version \
33 | head -n1 ; cmake --version | head -n1 ) > ${WORKER_NAME}/info/host"
34RUN echo "Paula Toth <[email protected]>" > "${WORKER_NAME}/info/admin"
35
36ADD --chown=buildbot:buildbot run.sh .
37ENTRYPOINT ["./run.sh"]