<commit_before># Piwik (https://piwik.org/)
# MariaDB (https://mariadb.org/)

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

RUN echo "deb http://archive.ubuntu.com/ubuntu trusty main universe" > /etc/apt/sources.list

# Ensure UTF-8
RUN apt-get update
RUN locale-gen en_US.UTF-8
ENV LANG       en_US.UTF-8
ENV LC_ALL     en_US.UTF-8

# Install MariaDB from repository.
RUN DEBIAN_FRONTEND=noninteractive && \
    apt-get -y install software-properties-common python-software-properties && \
    apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db && \
    add-apt-repository 'deb http://mirror.jmu.edu/pub/mariadb/repo/5.5/ubuntu trusty main' && \
    apt-get update && \
    apt-get install -y mariadb-server

# Install other tools.
RUN DEBIAN_FRONTEND=noninteractive && \
    apt-get install -y pwgen inotify-tools

# Decouple our data from our container.
VOLUME ["/data"]

# Configure the database to use our data dir.
RUN sed -i -e 's/^datadir\s*=.*/datadir = \/data/' /etc/mysql/my.cnf

# Configure MariaDB to listen on any address.
RUN sed -i -e 's/^bind-address/#bind-address/' /etc/mysql/my.cnf

# Install piwik dependencies
RUN apt-get -y install apache2 libapache2-mod-php5 php5-gd php5-json \
                       php5-mysql wget supervisor

RUN cd /var/www/html && \
    wget http://builds.piwik.org/piwik-2.9.0.tar.gz && \
    tar -xzf piwik-2.9.0.tar.gz && \
    rm piwik-2.9.0.tar.gz && \
    mv piwik/* . && \
    rm -r piwik && \
    chmod a+w /var/www/html/tmp && \
    chmod a+w /var/www/html/config && \
    rm /var/www/html/index.html

EXPOSE 80 3306
ADD scripts /scripts
RUN chmod +x /scripts/start.sh
RUN touch /firstrun

ENTRYPOINT ["/scripts/start.sh"]<commit_msg>upgrade to piwik 2.10.0<commit_after># Piwik (https://piwik.org/)
# MariaDB (https://mariadb.org/)

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

RUN echo "deb http://archive.ubuntu.com/ubuntu trusty main universe" > /etc/apt/sources.list

# Ensure UTF-8
RUN apt-get update
RUN locale-gen en_US.UTF-8
ENV LANG       en_US.UTF-8
ENV LC_ALL     en_US.UTF-8

# Install MariaDB from repository.
RUN DEBIAN_FRONTEND=noninteractive && \
    apt-get -y install software-properties-common python-software-properties && \
    apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db && \
    add-apt-repository 'deb http://mirror.jmu.edu/pub/mariadb/repo/5.5/ubuntu trusty main' && \
    apt-get update && \
    apt-get install -y mariadb-server

# Install other tools.
RUN DEBIAN_FRONTEND=noninteractive && \
    apt-get install -y pwgen inotify-tools

# Decouple our data from our container.
VOLUME ["/data"]

# Configure the database to use our data dir.
RUN sed -i -e 's/^datadir\s*=.*/datadir = \/data/' /etc/mysql/my.cnf

# Configure MariaDB to listen on any address.
RUN sed -i -e 's/^bind-address/#bind-address/' /etc/mysql/my.cnf

# Install piwik dependencies
RUN apt-get -y install apache2 libapache2-mod-php5 php5-gd php5-json \
                       php5-mysql wget supervisor

# remove default apache page
RUN rm /var/www/html/index.html

# deploy piwik
RUN cd /var/www/html && \
    wget http://builds.piwik.org/piwik-2.10.0.tar.gz && \
    tar --strip-components=1 -zxvf piwik-2.10.0.tar.gz && \
    rm piwik-2.10.0.tar.gz 

# set permissions for piwik
RUN chown -R www-data:www-data /var/www/html

EXPOSE 80 3306
ADD scripts /scripts
RUN chmod +x /scripts/start.sh
RUN touch /firstrun

ENTRYPOINT ["/scripts/start.sh"]
{'fraction_non_alphanumeric': 0.13994252873563218, 'fraction_numerical': 0.02586206896551724, 'mean_word_length': 2.867777777777778, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 4, 'lorem ipsum': 0, 'www.': 9, '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': '6901824', 'n_tokens_mistral': 1379, 'n_tokens_neox': 1298, 'n_words': 324}