3 # Installing dependencies.
4 RUN dpkg --add-architecture i386
5 RUN apt-get update && apt-get install -y build-essential clang subversion git \
6 vim zip libstdc++6:i386 file binutils-dev binutils-gold cmake python-pip \
8 RUN python -m pip install buildbot-worker==2.8.4
10 # Temporary dependencies for AOR tests.
11 RUN apt-get install -y libmpfr-dev libmpc-dev
13 # Change linker to gold.
14 RUN update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.gold" 20
16 # Create and switch to buildbot user.
17 RUN useradd buildbot --create-home
20 WORKDIR /home/buildbot
22 # Use clang as the compiler.
24 ENV CXX=/usr/bin/clang++
26 ENV WORKER_NAME="libc-x86_64-debian"
28 # Set up buildbot host and maintainer info.
29 RUN mkdir -p "${WORKER_NAME}/info/"
30 RUN bash -c "(uname -a ; \
31 gcc --version | head -n1 ; ld --version \
32 | head -n1 ; cmake --version | head -n1 ) > ${WORKER_NAME}/info/host"
33 RUN echo "Paula Toth <paulatoth@google.com>" > "${WORKER_NAME}/info/admin"
35 ADD --chown=buildbot:buildbot run.sh .
36 ENTRYPOINT ["./run.sh"]