<commit_before>FROM ubuntu:14.10
MAINTAINER Maestrano <<EMAIL>>

# Install Ansible
RUN apt-get -y update &&  \
    apt-get -y upgrade &&  \
    apt-get -q -y --no-install-recommends install unattended-upgrades git \
              python-yaml python-jinja2 python-httplib2 python-keyczar \
              python-paramiko python-setuptools python-pkg-resources python-pip &&  \
    mkdir -p /etc/ansible/ &&  \
    pip install ansible

# Add ansible configuration
ADD ansible /etc/ansible
WORKDIR /etc/ansible

# Run Ansible
RUN ansible-playbook -i hosts site.yml &&  \
    apt-get clean purge -y python2.6 python2.6-minimal &&  \
    rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Expose port 22 and 80
EXPOSE 22 80

# Configuration script
ADD /scripts/configure.py /root/configure.py
RUN chmod 755 /root/configure.py

# Startup script to run mysql and apache
ADD /scripts/init.sh /root/init.sh
RUN chmod 755 /root/init.sh

# Map mutable volumes
VOLUME ["/etc/ansible", "/etc/mysql", "/var/lib/mysql", "/etc/apache2", "/etc/php5", "/var/log/apache2", "/var/log/mysql"]

ENTRYPOINT ["/root/init.sh"]
CMD ["/root/init.sh"]
<commit_msg>Revert dockerfile volumes due to build hanging<commit_after>FROM ubuntu:14.10
MAINTAINER Maestrano <<EMAIL>>

# Install Ansible
RUN apt-get -y update &&  \
    apt-get -y upgrade &&  \
    apt-get -q -y --no-install-recommends install unattended-upgrades git \
              python-yaml python-jinja2 python-httplib2 python-keyczar \
              python-paramiko python-setuptools python-pkg-resources python-pip &&  \
    mkdir -p /etc/ansible/ &&  \
    pip install ansible

# Add ansible configuration
ADD ansible /etc/ansible
WORKDIR /etc/ansible

# Run Ansible
RUN ansible-playbook -i hosts site.yml &&  \
    apt-get clean purge -y python2.6 python2.6-minimal &&  \
    rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Expose port 22 and 80
EXPOSE 22 80

# Configuration script
ADD /scripts/configure.py /root/configure.py
RUN chmod 755 /root/configure.py

# Startup script to run mysql and apache
ADD /scripts/init.sh /root/init.sh
RUN chmod 755 /root/init.sh

# Map mutable volumes
VOLUME ["/etc/ansible"]

ENTRYPOINT ["/root/init.sh"]
CMD ["/root/init.sh"]

{'fraction_non_alphanumeric': 0.12863636363636363, 'fraction_numerical': 0.023181818181818182, 'mean_word_length': 2.8614035087719296, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '5639992', 'n_tokens_mistral': 814, 'n_tokens_neox': 758, 'n_words': 214}