<commit_before>FROM debian:jessie

ENV NEW_RELIC_LICENSE_KEY YOUR_LICENSE_KEY

# apt-get update, install newrelic server monitoring, and then clean
RUN apt-get update -q && apt-get install -yq ca-certificates wget procps && \
    echo deb http://apt.newrelic.com/debian/ newrelic non-free >> /etc/apt/sources.list.d/newrelic.list && \
    wget -O- https://download.newrelic.com/548C16BF.gpg | apt-key add - && \
    apt-get update -q && \
    apt-get install -y -qq newrelic-sysmond && \
    apt-get clean

# supervisor
RUN apt-get install -y -qq supervisor && \
    mkdir -p /etc/supervisor/conf.d/ && \
    mkdir -p /var/log/supervisor/
ADD supervisord.conf /etc/supervisor/supervisord.conf

# supervisor-newrelic
ADD supervisord-newrelic.conf /etc/supervisor/conf.d/newrelic.conf

# enabled supervisord
CMD nrsysmond-config --set license_key=$NEW_RELIC_LICENSE_KEY && supervisord -n<commit_msg>Add ENV NEW_RELIC_SYSMOND_VERSION<commit_after>FROM debian:jessie

ENV NEW_RELIC_LICENSE_KEY YOUR_LICENSE_KEY
ENV NEW_RELIC_SYSMOND_VERSION 192.168.127.12

# apt-get update, install newrelic server monitoring, and then clean
RUN apt-get update -q && apt-get install -yq ca-certificates wget procps && \
    echo deb http://apt.newrelic.com/debian/ newrelic non-free >> /etc/apt/sources.list.d/newrelic.list && \
    wget -O- https://download.newrelic.com/548C16BF.gpg | apt-key add - && \
    apt-get update -q && \
    apt-get install -y -qq newrelic-sysmond=$NEW_RELIC_SYSMOND_VERSION && \
    apt-get clean

# supervisor
RUN apt-get install -y -qq supervisor && \
    mkdir -p /etc/supervisor/conf.d/ && \
    mkdir -p /var/log/supervisor/
ADD supervisord.conf /etc/supervisor/supervisord.conf

# supervisor-newrelic
ADD supervisord-newrelic.conf /etc/supervisor/conf.d/newrelic.conf

# enabled supervisord
CMD nrsysmond-config --set license_key=$NEW_RELIC_LICENSE_KEY && supervisord -n
{'fraction_non_alphanumeric': 0.12036055143160128, 'fraction_numerical': 0.011134676564156946, 'mean_word_length': 3.5251798561151078, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7000119', 'n_tokens_mistral': 704, 'n_tokens_neox': 672, 'n_words': 150}