3 # Installing dependecies.
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 # Change linker to gold.
12 RUN update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.gold" 20
14 # Create and switch to buildbot user.
15 RUN useradd buildbot --create-home
18 WORKDIR /home/buildbot
20 # Use clang as the compiler.
22 ENV CXX=/usr/bin/clang++
24 ENV WORKER_NAME="libc-x86_64-debian"
26 # Set up buildbot host and maintainer info.
27 RUN mkdir -p "${WORKER_NAME}/info/"
28 RUN bash -c "(uname -a ; \
29 gcc --version | head -n1 ; ld --version \
30 | head -n1 ; cmake --version | head -n1 ) > ${WORKER_NAME}/info/host"
31 RUN echo "Paula Toth <paulatoth@google.com>" > "${WORKER_NAME}/info/admin"
33 ADD --chown=buildbot:buildbot run.sh .
34 ENTRYPOINT ["./run.sh"]