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

# Install lighttpd and smokeping
RUN apt-get update && \
    apt-get install -qqy --no-install-recommends smokeping ssmtp dnsutils \
                fonts-dejavu-core echoping curl lighttpd && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/* && \
    ln -sf /dev/stdout /var/log/lighttpd/access.log && \
    ln -sf /dev/stderr /var/log/lighttpd/error.log
# Forward request and error logs to docker log collector

# Configure
COPY 10-cgi.conf /etc/lighttpd/conf-available/
RUN mkdir -p /var/lib/smokeping /var/run/smokeping && \
    chown -Rh smokeping:www-data /var/cache/smokeping /var/lib/smokeping \
                /var/run/smokeping && \
    chmod -R g+ws /var/cache/smokeping /var/lib/smokeping /var/run/smokeping &&\
    lighttpd-enable-mod cgi && \
    ln -s /usr/share/smokeping/www /var/www/smokeping && \
    ln -s /usr/lib/cgi-bin /var/www/ && \
    ln -s /usr/lib/cgi-bin/smokeping.cgi /var/www/smokeping/

VOLUME ["/etc/smokeping", "/etc/ssmtp", "/var/lib/smokeping"]

EXPOSE 80

CMD service smokeping start && \
    chmod 0777 /dev/stderr /dev/stdout && \
    lighttpd -D -f /etc/lighttpd/lighttpd.conf<commit_msg>Enable fastcgi<commit_after>FROM ubuntu:trusty
MAINTAINER <NAME> <<EMAIL>>

# Install lighttpd and smokeping
RUN apt-get update && \
    apt-get install -qqy --no-install-recommends smokeping ssmtp dnsutils \
                fonts-dejavu-core echoping curl lighttpd && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/* && \
    ln -sf /dev/stdout /var/log/lighttpd/access.log && \
    ln -sf /dev/stderr /var/log/lighttpd/error.log
# Forward request and error logs to docker log collector

# Configure
COPY 10-cgi.conf /etc/lighttpd/conf-available/
RUN mkdir -p /var/lib/smokeping /var/run/smokeping && \
    chown -Rh smokeping:www-data /var/cache/smokeping /var/lib/smokeping \
                /var/run/smokeping && \
    chmod -R g+ws /var/cache/smokeping /var/lib/smokeping /var/run/smokeping &&\
    lighttpd-enable-mod cgi && \
    lighttpd-enable-mod fastcgi && \
    ln -s /usr/share/smokeping/www /var/www/smokeping && \
    ln -s /usr/lib/cgi-bin /var/www/ && \
    ln -s /usr/lib/cgi-bin/smokeping.cgi /var/www/smokeping/

VOLUME ["/etc/smokeping", "/etc/ssmtp", "/var/lib/smokeping"]

EXPOSE 80

CMD service smokeping start && \
    chmod 0777 /dev/stderr /dev/stdout && \
    lighttpd -D -f /etc/lighttpd/lighttpd.conf
{'fraction_non_alphanumeric': 0.14971287940935193, 'fraction_numerical': 0.006562756357670222, 'mean_word_length': 2.4793152639087017, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 10, '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': '2160520', 'n_tokens_mistral': 982, 'n_tokens_neox': 921, 'n_words': 198}