<commit_before>FROM cjhardekopf/confd
MAINTAINER <NAME> <<EMAIL>>

# Install software-properties-common and msmtp, add the icinga ppa, and install
# everything
RUN apt-get update && \
	DEBIAN_FRONTEND=noninteractive apt-get install -y software-properties-common msmtp msmtp-mta && \
	add-apt-repository -y ppa:formorer/icinga && \
	apt-get update && \
	DEBIAN_FRONTEND=noninteractive \
	apt-get install -y icinga2 icinga2-ido-mysql icinga-web \
		nagios-plugins nagios-plugins-contrib nagios-plugins-extra

# The icinga 2 ido-mysql module should be configured dynamically and the
# server needs to be started. Icinga 2 configuration is pretty involved and
# and needs to be configured by the end user and should therefore by in a
# /data directory. On start with an empty /data directory the configuration
# will be copied from /etc/icinga2 before changing /etc/icinga2 into a soft
# like to the configuration directory in /data.
ADD icinga2-mysql.conf.tmpl /etc/confd/templates/
ADD icinga2.toml /etc/confd/conf.d/
ADD icinga2-command /opt/
ADD icinga2.conf /etc/supervisor/conf.d/

# We need to configure ixinga-web and start the web server (apache).
ADD databases.xml.tmpl /etc/confd/templates/
ADD icinga-web.toml /etc/confd/conf.d/
ADD icinga-web-command /opt/
ADD icinga-web.conf /etc/supervisor/conf.d/

# We need to dynamically configure msmtp so that we can send mail
# (there is no server to start or restart)
ADD msmtprc.tmpl /etc/confd/templates/
ADD msmtp.toml /etc/confd/conf.d/

# Expose port 80 for icinga-web
EXPOSE 80
<commit_msg>Install the nrpe plugin.<commit_after>FROM cjhardekopf/confd
MAINTAINER <NAME> <<EMAIL>>

# Install software-properties-common and msmtp, add the icinga ppa, and install
# everything
RUN apt-get update && \
	DEBIAN_FRONTEND=noninteractive apt-get install -y software-properties-common msmtp msmtp-mta && \
	add-apt-repository -y ppa:formorer/icinga && \
	apt-get update && \
	DEBIAN_FRONTEND=noninteractive \
	apt-get install -y icinga2 icinga2-ido-mysql icinga-web \
		nagios-plugins nagios-plugins-contrib nagios-plugins-extra \
		nagios-nrpe-plugin

# The icinga 2 ido-mysql module should be configured dynamically and the
# server needs to be started. Icinga 2 configuration is pretty involved and
# and needs to be configured by the end user and should therefore by in a
# /data directory. On start with an empty /data directory the configuration
# will be copied from /etc/icinga2 before changing /etc/icinga2 into a soft
# like to the configuration directory in /data.
ADD icinga2-mysql.conf.tmpl /etc/confd/templates/
ADD icinga2.toml /etc/confd/conf.d/
ADD icinga2-command /opt/
ADD icinga2.conf /etc/supervisor/conf.d/

# We need to configure ixinga-web and start the web server (apache).
ADD databases.xml.tmpl /etc/confd/templates/
ADD icinga-web.toml /etc/confd/conf.d/
ADD icinga-web-command /opt/
ADD icinga-web.conf /etc/supervisor/conf.d/

# We need to dynamically configure msmtp so that we can send mail
# (there is no server to start or restart)
ADD msmtprc.tmpl /etc/confd/templates/
ADD msmtp.toml /etc/confd/conf.d/

# Expose port 80 for icinga-web
EXPOSE 80

{'fraction_non_alphanumeric': 0.0900958466453674, 'fraction_numerical': 0.008945686900958467, 'mean_word_length': 3.9384858044164037, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4454422', 'n_tokens_mistral': 1093, 'n_tokens_neox': 1071, 'n_words': 356}