<commit_before>FROM ubuntu:xenial
LABEL maintainer "rockaut" <<EMAIL>>
EXPOSE 5000

# Install prequesites
RUN apt-get update && apt-get install -y wget curl time traceroute libsnmp-python dialog dnsutils \
fping graphviz libapache2-mod-fcgid apache2 apache2-utils libdbi1 libevent-1.4-2 libltdl7 \
libnet-snmp-perl libpango1.0-0 libperl5.22 libreadline5 libsnmp-perl libuuid1 libxml2 patch \
php-cli php-cgi php-gd php-mcrypt php-sqlite3 php-json php-pear pyro rsync smbclient rpcbind \
snmp unzip xinetd python-ldap freeradius-utils libpcap0.8 rpm binutils lcab libgsf-1-114 libglib2.0-0 \
python-reportlab python-imaging poppler-utils python-openssl \
iputils-arping iputils-clockdiff iputils-ping iputils-tracepath libgnutls-openssl27 \
&& apt-get clean && rm -rf /var/lib/apt/lists/*

# install check_mk and dependents
ARG CMK_VERSION=1.2.8p17

RUN wget "https://mathias-kettner.de/support/${CMK_VERSION}/check-mk-raw-${CMK_VERSION}_0.xenial_amd64.deb" \
    && dpkg -i check-mk-raw-${CMK_VERSION}_0.xenial_amd64.deb || true \
    && apt-get install -y -f \
    && rm -f /*.deb \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

# create site and set defaults
ARG sitename=cmk

RUN omd create ${sitename}; \
    omd config ${sitename} set APACHE_TCP_ADDR 0.0.0.0; \
    omd config ${sitename} set DEFAULT_GUI check_mk; \
    omd config ${sitename} set TMPFS off;

# copy startscript and tools
COPY ./start.sh /usr/local/bin/start.sh

VOLUME [ "/opt/omd/sites/${sitename}/local", "/opt/omd/sites/${sitename}/etc/check_mk" ]

# finish<commit_msg>Update Dockerfile<commit_after>FROM ubuntu:xenial
LABEL maintainer "rockaut" <<EMAIL>>
EXPOSE 5000

# Install prequesites
RUN apt-get update && apt-get install -y wget curl time traceroute libsnmp-python dialog dnsutils \
fping graphviz libapache2-mod-fcgid apache2 apache2-utils libdbi1 libevent-1.4-2 libltdl7 \
libnet-snmp-perl libpango1.0-0 libperl5.22 libreadline5 libsnmp-perl libuuid1 libxml2 patch \
php-cli php-cgi php-gd php-mcrypt php-sqlite3 php-json php-pear pyro rsync smbclient rpcbind \
snmp unzip xinetd python-ldap freeradius-utils libpcap0.8 rpm binutils lcab libgsf-1-114 libglib2.0-0 \
python-reportlab python-imaging poppler-utils python-openssl \
iputils-arping iputils-clockdiff iputils-ping iputils-tracepath libgnutls-openssl27 \
&& apt-get clean && rm -rf /var/lib/apt/lists/*

# install check_mk and dependents
ARG CMK_VERSION=1.2.8p17

RUN wget "https://mathias-kettner.de/support/${CMK_VERSION}/check-mk-raw-${CMK_VERSION}_0.xenial_amd64.deb" \
    && dpkg -i check-mk-raw-${CMK_VERSION}_0.xenial_amd64.deb || true \
    && apt-get install -y -f \
    && rm -f /*.deb \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

# create site and set defaults
ARG sitename=cmk

RUN omd create ${sitename}; \
    omd config ${sitename} set APACHE_TCP_ADDR 0.0.0.0; \
    omd config ${sitename} set DEFAULT_GUI check_mk; \
    omd config ${sitename} set TMPFS off;

# copy startscript and tools
COPY ./start.sh /usr/local/bin/start.sh
COPY ./auth.serials /opt/omd/sites/${sitename}/etc/auth.serials

VOLUME [ "/opt/omd/sites/${sitename}/local", "/opt/omd/sites/${sitename}/etc/check_mk" ]

# finish
{'fraction_non_alphanumeric': 0.12657035175879397, 'fraction_numerical': 0.03015075376884422, 'mean_word_length': 3.7751124437781107, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 2, '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': '1391427', 'n_tokens_mistral': 1289, 'n_tokens_neox': 1209, 'n_words': 283}