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