1 2#===-------------------------------------------------------------------------------------------===// 3# buildslave 4#===-------------------------------------------------------------------------------------------===// 5ARG gcc_tot 6ARG llvm_tot 7 8FROM ${gcc_tot} AS gcc-tot 9FROM ${llvm_tot} AS llvm-tot 10 11FROM debian:stretch AS base-image 12 13ADD install-packages.sh /tmp/ 14RUN /tmp/install-packages.sh && rm /tmp/install-packages.sh 15 16COPY --from=ericwf/gcc:5.5.0 /compiler /opt/gcc-5 17 18FROM base-image as worker-image 19 20COPY --from=gcc-tot /compiler /opt/gcc-tot 21COPY --from=llvm-tot /compiler /opt/llvm-tot 22 23ENV PATH /opt/llvm-tot/bin:$PATH 24 25RUN clang++ --version && echo hello 26RUN g++ --version 27 28 29RUN /opt/gcc-tot/bin/g++ --version 30RUN /opt/llvm-tot/bin/clang++ --version 31RUN /opt/llvm-tot/bin/clang --version 32 33# FIXME(EricWF): remove this once the buildbot's config doesn't clobber the path. 34RUN ln -s /opt/llvm-tot/bin/clang /usr/local/bin/clang 35RUN ln -s /opt/llvm-tot/bin/clang++ /usr/local/bin/clang++ 36 37 38ADD run_buildbot.sh / 39CMD /run_buildbot.sh /run/secrets/buildbot-auth 40