<commit_before># An all-in-one container for Azrael.
# To start a specific demo:
#
#   >> docker run -d -p 8080:8080 \
#             olitheolix/azrael:latest \
#             demos/demo_forcegrid.py --noviewer --cubes=4,4,1
#
# Since the container contains a full MongoDB installation, you may
# want to export the MongoDB data directory to a temporary directory
# or otherwise your image will grow rapidly over time:
#
#   >> docker run -d -p 8080:8080 -v /tmp/azrael:/demo/azrael/volume \
#             olitheolix/azrael:latest \
#             demos/demo_forcegrid.py --noviewer --cubes=4,4,1

# Ubuntu 14.04 base image.
FROM ubuntu:14.04
MAINTAINER <NAME> <<EMAIL>>

# Create "/demo" and "/demo/mongodb" to hold the Azrael repo and
# MongoDB files, respectively.
RUN mkdir -p /demo/mongodb

# Add APT credentials for MongoDB.
RUN sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
RUN echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list

# Install Ubuntu packages for Azrael.
RUN apt-get update && apt-get install -y \
    IPython3 \
    git \
    libassimp-dev \
    libassimp3 \
    libboost-python-dev \
    mongodb-org \
    python3-matplotlib \
    python3-netifaces \
    python3-numpy \
    python3-pandas \
    python3-pil \
    python3-tornado \
    python3-zmq

# Install PIP packages, download and compile the Bullet-Python
# bindings, and clean up to reduce the size of the container image.
WORKDIR /tmp
RUN apt-get install -y python3-pip && \
    pip3 install \
      cytoolz \
      pymongo==2.7 \
      pytest-cov \
      setproctitle \
      websocket-client==0.15 &&\
    pip3 install --install-option -j \
    git+https://github.com/Klumhru/boost-python-bullet.git@d9ffae09157#egg=boost-python-bullet  && \
    apt-get remove -y python3-pip && \
    apt-get autoremove -y && apt-get -y clean

# Clone Azrael from GitHub.
RUN git clone https://github.com/olitheolix/azrael /demo/azrael

# Expose the ports for Clerk and Clacks.
EXPOSE 5555 8080

# Special environment variable to let Azrael know it runs in Docker.
ENV INSIDEDOCKER 1

# Home directory.
WORKDIR /demo/azrael

# Default command: start the force grid demo.
CMD ["/usr/bin/python3", "demos/demo_forcegrid.py", "--noviewer", \
     "--reset=30", "--cubes=3,3,1", "--linear=1", "--circular=1"]<commit_msg>Dockerfile now uses single threaded builds for the 'pybullet' bindings.<commit_after># An all-in-one container for Azrael.
# To start a specific demo:
#
#   >> docker run -d -p 8080:8080 \
#             olitheolix/azrael:latest \
#             demos/demo_forcegrid.py --noviewer --cubes=4,4,1
#
# Since the container contains a full MongoDB installation, you may
# want to export the MongoDB data directory to a temporary directory
# or otherwise your image will grow rapidly over time:
#
#   >> docker run -d -p 8080:8080 -v /tmp/azrael:/demo/azrael/volume \
#             olitheolix/azrael:latest \
#             demos/demo_forcegrid.py --noviewer --cubes=4,4,1

# Ubuntu 14.04 base image.
FROM ubuntu:14.04
MAINTAINER <NAME> <<EMAIL>>

# Create "/demo" and "/demo/mongodb" to hold the Azrael repo and
# MongoDB files, respectively.
RUN mkdir -p /demo/mongodb

# Add APT credentials for MongoDB.
RUN sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
RUN echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list

# Install Ubuntu packages for Azrael.
RUN apt-get update && apt-get install -y \
    IPython3 \
    git \
    libassimp-dev \
    libassimp3 \
    libboost-python-dev \
    mongodb-org \
    python3-matplotlib \
    python3-netifaces \
    python3-numpy \
    python3-pandas \
    python3-pil \
    python3-tornado \
    python3-zmq

# Install PIP packages, download and compile the Bullet-Python
# bindings, and clean up to reduce the size of the container image.
WORKDIR /tmp
RUN apt-get install -y python3-pip && \
    pip3 install \
      cytoolz \
      pymongo==2.7 \
      pytest-cov \
      setproctitle \
      websocket-client==0.15 &&\
    pip3 install --install-option \
    git+https://github.com/Klumhru/boost-python-bullet.git@d9ffae09157#egg=boost-python-bullet  && \
    apt-get remove -y python3-pip && \
    apt-get autoremove -y && apt-get -y clean

# Clone Azrael from GitHub.
RUN git clone https://github.com/olitheolix/azrael /demo/azrael

# Expose the ports for Clerk and Clacks.
EXPOSE 5555 8080

# Special environment variable to let Azrael know it runs in Docker.
ENV INSIDEDOCKER 1

# Home directory.
WORKDIR /demo/azrael

# Default command: start the force grid demo.
CMD ["/usr/bin/python3", "demos/demo_forcegrid.py", "--noviewer", \
     "--reset=30", "--cubes=3,3,1", "--linear=1", "--circular=1"]
{'fraction_non_alphanumeric': 0.12117477921544464, 'fraction_numerical': 0.033271719038817, 'mean_word_length': 2.801717408274785, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 17, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1711818', 'n_tokens_mistral': 1833, 'n_tokens_neox': 1666, 'n_words': 477}