Debian Codegraph @

libc/utils/buildbot/Dockerfile

raw
1 FROM debian:10
2
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 \
7 ninja-build python3
8 RUN python -m pip install buildbot-worker==2.8.4
9
10 # Temporary dependencies for AOR tests.
11 RUN apt-get install -y libmpfr-dev libmpc-dev
12
13 # Change linker to gold.
14 RUN update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.gold" 20
15
16 # Create and switch to buildbot user.
17 RUN useradd buildbot --create-home
18 USER buildbot
19
20 WORKDIR /home/buildbot
21
22 # Use clang as the compiler.
23 ENV CC=/usr/bin/clang
24 ENV CXX=/usr/bin/clang++
25
26 ENV WORKER_NAME="libc-x86_64-debian"
27
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 <[email protected]>" > "${WORKER_NAME}/info/admin"
34
35 ADD --chown=buildbot:buildbot run.sh .
36 ENTRYPOINT ["./run.sh"]