<commit_before>FROM bee42/rpi-alpine

MAINTAINER <NAME> <<EMAIL>> @PRossbach

ARG PROMETHEUS_VERSION
ENV PROMETHEUS_VERSION=${PROMETHEUS_VERSION:-1.2.1}

RUN apk update \
 && apk upgrade\
 && apk add openssl \
 && rm -rf /var/cache/apk/*

RUN mkdir -p /tmp/prometheus \
 && cd /tmp/prometheus \
 && wget https://github.com/prometheus/prometheus/releases/download/v${PROMETHEUS_VERSION}/prometheus-${PROMETHEUS_VERSION}.linux-armv5.tar.gz \
 && tar xzf prometheus-${PROMETHEUS_VERSION}.linux-armv5.tar.gz \
 && cd prometheus-${PROMETHEUS_VERSION}.linux-armv5 \
 && cp prometheus /bin/prometheus \
 && cp promtool /bin/promtool \
 && mkdir -p /etc/prometheus \
 && cp prometheus.yml /etc/prometheus/prometheus.yml \
 && mkdir -p /usr/share/prometheus/console_libraries/ \
 && cp -r console_libraries/ /usr/share/prometheus/console_libraries/ \
 && mkdir -p /usr/share/prometheus/consoles/ \
 && cp -r consoles/ /usr/share/prometheus/consoles/ \
 && cd / \
 && rm -rf /tmp/prometheus

ADD LICENSE /etc/LICENSE.prometheus
RUN COPYDATE=`date  +'%Y'` && echo "bee42 prometheus" >/etc/provisioned.prometheus && date >>/etc/provisioned.prometheus && echo >>/etc/provisioned.prometheus && echo " Copyright ${COPYDATE} by <<EMAIL>> bee42 solutions gmbh" >>/etc/provisioned.prometheus

EXPOSE     9090
VOLUME     [ "/prometheus" ]
WORKDIR    /prometheus
ENTRYPOINT [ "/bin/prometheus" ]
CMD        [ "-config.file=/etc/prometheus/prometheus.yml", \
             "-storage.local.path=/prometheus", \
             "-web.console.libraries=/usr/share/prometheus/console_libraries", \
             "-web.console.templates=/usr/share/prometheus/consoles" ]<commit_msg>upgrade versin 1.3.1 and only arm v7 support<commit_after>FROM bee42/rpi-alpine

MAINTAINER <NAME> <<EMAIL>> @PRossbach

ARG PROMETHEUS_VERSION
ENV PROMETHEUS_VERSION=${PROMETHEUS_VERSION:-1.3.1}

RUN apk update \
 && apk add openssl \
 && rm -rf /var/cache/apk/*

RUN mkdir -p /tmp/prometheus \
 && cd /tmp/prometheus \
 && wget https://github.com/prometheus/prometheus/releases/download/v${PROMETHEUS_VERSION}/prometheus-${PROMETHEUS_VERSION}.linux-armv7.tar.gz \
 && tar xzf prometheus-${PROMETHEUS_VERSION}.linux-armv7.tar.gz \
 && cd prometheus-${PROMETHEUS_VERSION}.linux-armv7 \
 && cp prometheus /bin/prometheus \
 && cp promtool /bin/promtool \
 && mkdir -p /etc/prometheus \
 && cp prometheus.yml /etc/prometheus/prometheus.yml \
 && mkdir -p /usr/share/prometheus/console_libraries/ \
 && cp -r console_libraries/ /usr/share/prometheus/console_libraries/ \
 && mkdir -p /usr/share/prometheus/consoles/ \
 && cp -r consoles/ /usr/share/prometheus/consoles/ \
 && cd / \
 && rm -rf /tmp/prometheus

ADD LICENSE /etc/LICENSE.prometheus
RUN COPYDATE=`date  +'%Y'` && echo "bee42 prometheus" >/etc/provisioned.prometheus && date >>/etc/provisioned.prometheus && echo >>/etc/provisioned.prometheus && echo " Copyright ${COPYDATE} by <<EMAIL>> bee42 solutions gmbh" >>/etc/provisioned.prometheus

EXPOSE     9090
VOLUME     [ "/prometheus" ]
WORKDIR    /prometheus
ENTRYPOINT [ "/bin/prometheus" ]
CMD        [ "-config.file=/etc/prometheus/prometheus.yml", \
             "-storage.local.path=/prometheus", \
             "-web.console.libraries=/usr/share/prometheus/console_libraries", \
             "-web.console.templates=/usr/share/prometheus/consoles" ]
{'fraction_non_alphanumeric': 0.1583232810615199, 'fraction_numerical': 0.010856453558504222, 'mean_word_length': 3.4523489932885907, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 27, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '4029776', 'n_tokens_mistral': 1262, 'n_tokens_neox': 1157, 'n_words': 205}