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.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. FROM debian: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. RUN wget http://repo.zabbix.com/zabbix/3.0/debian/pool/main/z/zabbix-release/zabbix-release_3.0-1+jessie_all.deb -O /tmp/zabbix.deb &&\
  7. dpkg -i /tmp/zabbix.deb
  8. RUN apt-get update && apt-get -y install\
  9. zabbix-server-pgsql zabbix-get\
  10. snmp &&\
  11. apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  12. RUN chown -R zabbix:zabbix /etc/zabbix &&\
  13. mkdir -p /var/run/zabbix &&\
  14. chown zabbix:zabbix /var/run/zabbix/
  15. RUN rm -rf /var/log/* &&\
  16. mkdir -p /var/log/zabbix/ &&\
  17. chown zabbix:zabbix /var/log/zabbix/ &&\
  18. ln -s /dev/stdout /var/log/zabbix/zabbix_server.log
  19. RUN chmod u+s /usr/bin/fping &&\
  20. chmod u+s /usr/bin/fping6
  21. COPY ./zabbix_server.conf /etc/zabbix/zabbix_server.conf
  22. COPY ./vars-vars /etc/vars-vars
  23. COPY ./vars-files /etc/vars-files
  24. COPY ./run.sh /run.sh
  25. EXPOSE 80
  26. USER zabbix
  27. CMD ["/run.sh"]