<commit_before># Base the image on Debian 7
# Picked Debian because it's small and what runs on the bot
# https://registry.hub.docker.com/_/debian/
FROM debian:7
MAINTAINER <NAME> <<EMAIL>>

# These are the packages installed via setup/setup_bone.sh
# https://github.com/IEEERobotics/bot2014/blob/master/setup/setup_bone.sh
RUN apt-get update && apt-get install -y git \
                                         python \
                                         python-dev \
                                         python-yaml \
                                         python-simplejson \
                                         libzmq-dev \
                                         python-zmq \
                                         python-numpy \
                                         python-smbus \
                                         python-pip \
                                         pep8

# Clone required repos into /src
RUN git clone https://github.com/IEEERobotics/DMCC_Library.git /src/DMCC_Library
RUN git clone https://github.com/IEEERobotics/pybbb.git /src/pybbb
RUN git clone https://github.com/jschornick/i2c_device.git /src/i2c_device

# Install required repos
RUN cd /src/i2c_device && python setup.py install
RUN cd /src/DMCC_Library && python setup.py install
RUN cd /src/pybbb && python setup.py install

# Drop source (bot2014, current context) in /src dir
# Do the ADD as late as possible, as it invalidates cache
ADD . /src/bot2014

# Due to issue #112, tests must be run before server can start
# The tests create simulated hardware files required by server in test mode
RUN cd /src/bot2014 && ./start.py -t

WORKDIR /src/bot2014
CMD ["./start.py", "-Ts"]<commit_msg>Reordered installs to fix dep issue<commit_after># Base the image on Debian 7
# Picked Debian because it's small and what runs on the bot
# https://registry.hub.docker.com/_/debian/
FROM debian:7
MAINTAINER <NAME> <<EMAIL>>

# These are the packages installed via setup/setup_bone.sh
# https://github.com/IEEERobotics/bot2014/blob/master/setup/setup_bone.sh
RUN apt-get update && apt-get install -y git \
                                         python \
                                         python-dev \
                                         python-yaml \
                                         python-simplejson \
                                         libzmq-dev \
                                         python-zmq \
                                         python-numpy \
                                         python-smbus \
                                         python-pip \
                                         pep8

# Clone required repos into /src
RUN git clone https://github.com/IEEERobotics/DMCC_Library.git /src/DMCC_Library
RUN git clone https://github.com/jschornick/i2c_device.git /src/i2c_device
RUN git clone https://github.com/IEEERobotics/pybbb.git /src/pybbb

# Install required repos
RUN cd /src/i2c_device && python setup.py install
RUN cd /src/DMCC_Library && python setup.py install
RUN cd /src/pybbb && python setup.py install

# Drop source (bot2014, current context) in /src dir
# Do the ADD as late as possible, as it invalidates cache
ADD . /src/bot2014

# Due to issue #112, tests must be run before server can start
# The tests create simulated hardware files required by server in test mode
RUN cd /src/bot2014 && ./start.py -t

# TODO: Expose server port
EXPOSE 60000

WORKDIR /src/bot2014
CMD ["./start.py", "-Ts"]
{'fraction_non_alphanumeric': 0.08163265306122448, 'fraction_numerical': 0.018108651911468814, 'mean_word_length': 1.543859649122807, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 40, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6660543', 'n_tokens_mistral': 952, 'n_tokens_neox': 881, 'n_words': 300}