<commit_before>FROM ubuntu:14.04

# MIPS compilers aren't available by default in ubuntu's repos, so we follow
# these intructions:
#
# http://sathisharada.blogspot.com/2014/10/hi-surfers-i-have-came-across-some.html
RUN echo 'deb http://ftp.de.debian.org/debian squeeze main' \
      | tee -a /etc/apt/sources.list
RUN echo 'deb http://www.emdebian.org/debian squeeze main' \
      | tee -a /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y --force-yes \
        curl make cmake xz-utils git wget \
        python-dev python-pip stunnel \
        g++-multilib

# Install buildbot and prep it to run
RUN pip install buildbot-slave
RUN groupadd -r rustbuild && useradd -r -g rustbuild rustbuild
RUN mkdir /buildslave && chown rustbuild:rustbuild /buildslave

WORKDIR /build
COPY linux/build-gcc.sh linux/build-musl.sh /build/

# Unfortunately on Ubuntu we can't install both gcc-multilib and all the cross
# compilers we want, so we just build our own gcc with multilib and then
# uninstall the standard gcc/g++ and then install all the standard cross
# compilers.
RUN sh build-gcc.sh
RUN apt-get remove -y g++-multilib gcc-multilib g++ gcc
RUN apt-get install -y --force-yes \
        gcc-arm-linux-gnueabi \
        gcc-arm-linux-gnueabihf \
        gcc-aarch64-linux-gnu \
        gcc-4.4-mips-linux-gnu \
        gcc-4.4-mipsel-linux-gnu
ENV PATH=$PATH:/opt/gcc/bin
ENV LD_LIBRARY_PATH=/opt/gcc/lib

# Install MUSL to support crossing to that target
RUN sh build-musl.sh

# When running this container, startup buildbot
USER rustbuild
WORKDIR /buildslave
COPY start-docker-slave.sh start-docker-slave.sh
ENTRYPOINT ["sh", "start-docker-slave.sh"]<commit_msg>Create a symlink for cc on linux<commit_after>FROM ubuntu:14.04

# MIPS compilers aren't available by default in ubuntu's repos, so we follow
# these intructions:
#
# http://sathisharada.blogspot.com/2014/10/hi-surfers-i-have-came-across-some.html
RUN echo 'deb http://ftp.de.debian.org/debian squeeze main' \
      | tee -a /etc/apt/sources.list
RUN echo 'deb http://www.emdebian.org/debian squeeze main' \
      | tee -a /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y --force-yes \
        curl make cmake xz-utils git wget \
        python-dev python-pip stunnel \
        g++-multilib

# Install buildbot and prep it to run
RUN pip install buildbot-slave
RUN groupadd -r rustbuild && useradd -r -g rustbuild rustbuild
RUN mkdir /buildslave && chown rustbuild:rustbuild /buildslave

WORKDIR /build
COPY linux/build-gcc.sh linux/build-musl.sh /build/

# Unfortunately on Ubuntu we can't install both gcc-multilib and all the cross
# compilers we want, so we just build our own gcc with multilib and then
# uninstall the standard gcc/g++ and then install all the standard cross
# compilers.
RUN sh build-gcc.sh
RUN apt-get remove -y g++-multilib gcc-multilib g++ gcc
RUN apt-get install -y --force-yes \
        gcc-arm-linux-gnueabi \
        gcc-arm-linux-gnueabihf \
        gcc-aarch64-linux-gnu \
        gcc-4.4-mips-linux-gnu \
        gcc-4.4-mipsel-linux-gnu
ENV PATH=$PATH:/opt/gcc/bin
ENV LD_LIBRARY_PATH=/opt/gcc/lib
RUN ln -nsf gcc /opt/gcc/bin/cc

# Install MUSL to support crossing to that target
RUN sh build-musl.sh

# When running this container, startup buildbot
USER rustbuild
WORKDIR /buildslave
COPY start-docker-slave.sh start-docker-slave.sh
ENTRYPOINT ["sh", "start-docker-slave.sh"]
{'fraction_non_alphanumeric': 0.10555718906204058, 'fraction_numerical': 0.009408997353719493, 'mean_word_length': 3.1336573511543135, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5181645', 'n_tokens_mistral': 1235, 'n_tokens_neox': 1111, 'n_words': 360}