You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. FROM robinthoni/debian-multiarch:jessie
  2. MAINTAINER Robin Thoni <robin@rthoni.com>
  3. RUN apt-get update && apt-get -y install\
  4. wget &&\
  5. apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  6. ARG ZABBIX_VERSION=3.4
  7. RUN sed -i 's/main/main non-free/' /etc/apt/sources.list
  8. RUN wget http://repo.zabbix.com/zabbix/${ZABBIX_VERSION}/debian/pool/main/z/zabbix-release/zabbix-release_${ZABBIX_VERSION}-1+jessie_all.deb -O /tmp/zabbix.deb &&\
  9. dpkg -i /tmp/zabbix.deb
  10. RUN apt-get update && apt-get -y install\
  11. zabbix-server-pgsql zabbix-get snmp snmp-mibs-downloader\
  12. snmp &&\
  13. apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  14. RUN chown -R zabbix:zabbix /etc/zabbix &&\
  15. mkdir -p /var/run/zabbix &&\
  16. chown zabbix:zabbix /var/run/zabbix/
  17. RUN rm -rf /var/log/* &&\
  18. mkdir -p /var/log/zabbix/ &&\
  19. chown zabbix:zabbix /var/log/zabbix/ &&\
  20. ln -s /dev/stdout /var/log/zabbix/zabbix_server.log
  21. RUN chmod u+s /usr/bin/fping &&\
  22. chmod u+s /usr/bin/fping6
  23. COPY ./zabbix_server.conf /etc/zabbix/zabbix_server.conf
  24. COPY ./vars-vars /etc/vars-vars
  25. COPY ./vars-files /etc/vars-files
  26. COPY ./run.sh /run.sh
  27. EXPOSE 80
  28. USER zabbix
  29. CMD ["/run.sh"]