forked from jjethwa/icinga2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
63 lines (54 loc) · 1.25 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Dockerfile for icinga2 with icingaweb2
# https://github.com/jjethwa/icinga2
FROM jordan/icinga2:latest
# ## DIFFER-UPPSTREAM mSMTP Configuration
# COPY etc/mail.rc /etc/mail.rc
# COPY msmtp/msmtprc /etc/msmtprc
# COPY msmtp/aliases /etc/aliases
# RUN mkdir -p /var/log/msmtprc/ \
# && chown nagios:nagios /etc/msmtprc \
# && chmod 600 /etc/msmtprc
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y --no-install-recommends \
apache2 \
ca-certificates \
apt-transport-https \
curl \
dnsutils \
file \
gnupg \
libdbd-mysql-perl \
libdigest-hmac-perl \
libnet-snmp-perl \
locales \
lsb-release \
mailutils \
mariadb-client \
mariadb-server \
netbase \
openssh-client \
openssl \
php-curl \
php-ldap \
php-mysql \
procps \
pwgen \
snmp \
ssmtp \
sudo \
supervisor \
unzip \
wget \
git \
vim \
python3 \
python3-pip \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN python3 -m pip install --upgrade pip \
&& python3 -m pip install cryptography paramiko icinga2api PyMySQL ujson
EXPOSE 80 443 5665
# Initialize and run Supervisor
ENTRYPOINT ["/opt/run"]