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

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