Dockerfile 844 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. FROM alpine:3.18
  2. LABEL maintainer "The Infrastructure Company GmbH <info@servercow.de>"
  3. # Installation
  4. RUN apk add --update \
  5. && apk add --no-cache nagios-plugins-smtp \
  6. nagios-plugins-tcp \
  7. nagios-plugins-http \
  8. nagios-plugins-ping \
  9. mariadb-client \
  10. curl \
  11. bash \
  12. coreutils \
  13. jq \
  14. fcgi \
  15. openssl \
  16. nagios-plugins-mysql \
  17. nagios-plugins-dns \
  18. nagios-plugins-disk \
  19. bind-tools \
  20. redis \
  21. perl \
  22. perl-net-dns \
  23. perl-io-socket-ssl \
  24. perl-io-socket-inet6 \
  25. perl-socket \
  26. perl-socket6 \
  27. perl-mime-lite \
  28. perl-term-readkey \
  29. tini \
  30. tzdata \
  31. whois \
  32. && curl https://raw.githubusercontent.com/mludvig/smtp-cli/v3.10/smtp-cli -o /smtp-cli \
  33. && chmod +x smtp-cli
  34. COPY watchdog.sh /watchdog.sh
  35. COPY check_mysql_slavestatus.sh /usr/lib/nagios/plugins/check_mysql_slavestatus.sh
  36. CMD /watchdog.sh