3 # Installing dependencies.
4 RUN dpkg --add-architecture i386
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 \
9 RUN python -m pip install buildbot-slave==0.8.12
11 # Temporary dependencies for AOR tests.
12 RUN apt-get install -y libmpfr-dev libmpc-dev
14 # Change linker to gold.
15 RUN update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.gold" 20
17 # Create and switch to buildbot user.
18 RUN useradd buildbot --create-home
21 WORKDIR /home/buildbot
23 # Use clang as the compiler.
25 ENV CXX=/usr/bin/clang++
27 ENV WORKER_NAME="libc-x86_64-debian"
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 <paulatoth@google.com>" > "${WORKER_NAME}/info/admin"
36 ADD --chown=buildbot:buildbot run.sh .
37 ENTRYPOINT ["./run.sh"]