<commit_before># This Dockerfile is used to build an image containing a ready to be used basic Graphite system.
# It includes all Graphite components for data handling (carbon-cache & carbon-aggregator) as well as the Web layer 
# (graphite-web). It comes bundled with an Apache HTTP Web server extended with mod_wsgi & mod_python. 
# All major processes inside the box are managed via 'supervisor'.

FROM ubuntu:trusty
MAINTAINER <NAME> <<EMAIL>>

# Make sure the package repository is up to date.
RUN apt-get -y update
RUN apt-get -y upgrade

# Install common stuff needed by the rest of this build file.
RUN apt-get -y install python-pip memcached python-memcache python-ldap
RUN apt-get -y install gcc

# Install the 'supervisor' process manager.
RUN apt-get -y install supervisor

# Install Apache HTTP Web server with mod_wsgi & mod_python
RUN apt-get -y install apache2 libapache2-mod-python libapache2-mod-wsgi 

# Install main Graphite components (carbon-cache, Web application & whisper) with dependencies
RUN pip install https://github.com/graphite-project/ceres/tarball/master
RUN pip install whisper
RUN apt-get -y install python-twisted python-cairo
RUN pip install carbon
RUN pip install graphite-web
RUN apt-get -y install python-django-tagging

# Configure the box. Use default Graphite configurations for everything.
ADD ./supervisord.conf /etc/supervisor/conf.d/supervisord.conf

RUN mv /opt/graphite/conf/carbon.conf.example /opt/graphite/conf/carbon.conf
RUN mv /opt/graphite/conf/storage-schemas.conf.example /opt/graphite/conf/storage-schemas.conf
RUN mv /opt/graphite/conf/aggregation-rules.conf.example /opt/graphite/conf/aggregation-rules.conf
RUN mv /opt/graphite/conf/dashboard.conf.example /opt/graphite/conf/dashboard.conf
RUN mv /opt/graphite/conf/graphTemplates.conf.example /opt/graphite/conf/graphTemplates.conf
RUN mv /opt/graphite/conf/graphite.wsgi.example /opt/graphite/conf/graphite.wsgi
RUN mv /opt/graphite/webapp/graphite/local_settings.py.example /opt/graphite/webapp/graphite/local_settings.py
RUN cd /opt/graphite/webapp/graphite && echo "yes\n\n<EMAIL>\nroot\nroot" | python manage.py syncdb
RUN chown -R www-data /opt/graphite/storage

ADD ./apache2.graphite-site.conf /etc/apache2/sites-available/
RUN a2ensite apache2.graphite-site

# Graphite Web application port (standard HTTP)
EXPOSE 80
<commit_msg>Update Dockerfile<commit_after># This Dockerfile is used to build an image containing a ready to be used basic Graphite system.
# It includes all Graphite components for data handling (carbon-cache & carbon-aggregator) as well as the Web layer 
# (graphite-web). It comes bundled with an Apache HTTP Web server extended with mod_wsgi & mod_python. 
# All major processes inside the box are managed via 'supervisor'.

FROM ubuntu:trusty
MAINTAINER <NAME> <<EMAIL>>

# Make sure the package repository is up to date.
RUN apt-get -y update
RUN apt-get -y upgrade

# Install common stuff needed by the rest of this build file.
RUN apt-get -y install python-pip memcached python-memcache python-ldap
RUN apt-get -y install gcc

# Install the 'supervisor' process manager.
RUN apt-get -y install supervisor

# Install Apache HTTP Web server with mod_wsgi & mod_python
RUN apt-get -y install apache2 libapache2-mod-python libapache2-mod-wsgi 

# Install main Graphite components (carbon-cache, Web application & whisper) with dependencies
RUN pip install https://github.com/graphite-project/ceres/tarball/master
RUN pip install whisper
RUN apt-get -y install python-twisted python-cairo
RUN pip install carbon
RUN pip install graphite-web
RUN apt-get -y install python-django-tagging

# Configure the box. Use default Graphite configurations for everything.
ADD ./supervisord.conf /etc/supervisor/conf.d/supervisord.conf

RUN mv /opt/graphite/conf/carbon.conf.example /opt/graphite/conf/carbon.conf
RUN mv /opt/graphite/conf/storage-schemas.conf.example /opt/graphite/conf/storage-schemas.conf
RUN mv /opt/graphite/conf/aggregation-rules.conf.example /opt/graphite/conf/aggregation-rules.conf
RUN mv /opt/graphite/conf/dashboard.conf.example /opt/graphite/conf/dashboard.conf
RUN mv /opt/graphite/conf/graphTemplates.conf.example /opt/graphite/conf/graphTemplates.conf
RUN mv /opt/graphite/conf/graphite.wsgi.example /opt/graphite/conf/graphite.wsgi
RUN mv /opt/graphite/webapp/graphite/local_settings.py.example /opt/graphite/webapp/graphite/local_settings.py
RUN cd /opt/graphite/webapp/graphite && echo "yes\n\nroot@example.com\nroot\nroot" | python manage.py syncdb
RUN chown -R www-data /opt/graphite/storage

ADD ./apache2.graphite-site.conf /etc/apache2/sites-available/
RUN a2ensite apache2.graphite-site
RUN a2dissite 000-default

# Graphite Web application port (standard HTTP)
EXPOSE 80

{'fraction_non_alphanumeric': 0.09002740881298756, 'fraction_numerical': 0.004638414505587181, 'mean_word_length': 4.484393063583815, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 1, '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': '3581416', 'n_tokens_mistral': 1513, 'n_tokens_neox': 1457, 'n_words': 470}