2019-02-05 01:01:31 +02:00
|
|
|
FROM alpine:3.9
|
2017-09-20 10:56:49 +02:00
|
|
|
LABEL maintainer "André Peters <andre.peters@servercow.de>"
|
|
|
|
|
|
|
|
# Installation
|
|
|
|
RUN apk add --update \
|
2018-05-06 09:15:35 +02:00
|
|
|
&& apk add --no-cache nagios-plugins-smtp \
|
|
|
|
nagios-plugins-tcp \
|
|
|
|
nagios-plugins-http \
|
|
|
|
nagios-plugins-ping \
|
|
|
|
curl \
|
|
|
|
bash \
|
2018-10-27 23:44:06 +02:00
|
|
|
coreutils \
|
2018-05-06 09:15:35 +02:00
|
|
|
jq \
|
|
|
|
fcgi \
|
2019-04-18 22:09:26 +02:00
|
|
|
openssl \
|
2018-05-06 09:15:35 +02:00
|
|
|
nagios-plugins-mysql \
|
|
|
|
nagios-plugins-dns \
|
|
|
|
nagios-plugins-disk \
|
|
|
|
bind-tools \
|
|
|
|
redis \
|
|
|
|
perl \
|
|
|
|
perl-io-socket-ssl \
|
2018-05-27 21:40:53 +02:00
|
|
|
perl-io-socket-inet6 \
|
2018-05-06 09:15:35 +02:00
|
|
|
perl-socket \
|
|
|
|
perl-socket6 \
|
|
|
|
perl-mime-lite \
|
|
|
|
perl-term-readkey \
|
2017-10-14 23:26:08 +02:00
|
|
|
tini \
|
2018-06-27 22:50:31 +02:00
|
|
|
tzdata \
|
2018-05-06 09:15:35 +02:00
|
|
|
&& curl https://raw.githubusercontent.com/mludvig/smtp-cli/v3.9/smtp-cli -o /smtp-cli \
|
|
|
|
&& chmod +x smtp-cli
|
2017-09-20 10:56:49 +02:00
|
|
|
|
|
|
|
COPY watchdog.sh /watchdog.sh
|
|
|
|
|
2017-10-14 23:26:08 +02:00
|
|
|
ENTRYPOINT ["/sbin/tini", "-g", "--"]
|
2017-09-20 10:56:49 +02:00
|
|
|
# Less verbose
|
|
|
|
CMD /watchdog.sh 2> /dev/null
|