1FROM debian:10 2 3# Installing dependencies. 4RUN dpkg --add-architecture i386 5RUN 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 \ 7 ninja-build python3 8RUN python -m pip install buildbot-worker==2.8.4 9 10# Temporary dependencies for AOR tests. 11RUN apt-get install -y libmpfr-dev libmpc-dev 12 13# Change linker to gold. 14RUN update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.gold" 20 15 16# Create and switch to buildbot user. 17RUN useradd buildbot --create-home 18USER buildbot 19 20WORKDIR /home/buildbot 21 22# Use clang as the compiler. 23ENV CC=/usr/bin/clang 24ENV CXX=/usr/bin/clang++ 25 26ENV WORKER_NAME="libc-x86_64-debian" 27 28# Set up buildbot host and maintainer info. 29RUN mkdir -p "${WORKER_NAME}/info/" 30RUN bash -c "(uname -a ; \ 31 gcc --version | head -n1 ; ld --version \ 32 | head -n1 ; cmake --version | head -n1 ) > ${WORKER_NAME}/info/host" 33RUN echo "Paula Toth <paulatoth@google.com>" > "${WORKER_NAME}/info/admin" 34 35ADD --chown=buildbot:buildbot run.sh . 36ENTRYPOINT ["./run.sh"] 37