1FROM debian:10 2 3# Installing dependencies. 4RUN 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-worker==2.8.4 10 11# Temporary dependencies for AOR tests. 12RUN apt-get install -y libmpfr-dev libmpc-dev 13 14# 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 <paulatoth@google.com>" > "${WORKER_NAME}/info/admin" 35 36ADD --chown=buildbot:buildbot run.sh . 37ENTRYPOINT ["./run.sh"] 38