brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · bbca8df Raw
37 lines · plain
1FROM docker.io/debian:102 3# Installing dependencies.4RUN dpkg --add-architecture i3865RUN 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 python38RUN python -m pip install buildbot-worker==2.8.49 10# Temporary dependencies for AOR tests.11RUN apt-get install -y libmpfr-dev libmpc-dev12 13# Change linker to gold.14RUN update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.gold" 2015 16# Create and switch to buildbot user.17RUN useradd buildbot --create-home18USER buildbot19 20WORKDIR /home/buildbot21 22# Use clang as the compiler.23ENV CC=/usr/bin/clang24ENV 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