123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- FROM robinthoni/debian-multiarch:jessie
-
- MAINTAINER Robin Thoni <robin@rthoni.com>
-
- RUN apt-get update && apt-get -y install\
- wget &&\
- apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
-
- ARG ZABBIX_VERSION=3.4
-
- RUN sed -i 's/main/main non-free/' /etc/apt/sources.list
-
- 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 &&\
- dpkg -i /tmp/zabbix.deb
-
- RUN apt-get update && apt-get -y install\
- zabbix-server-pgsql zabbix-get snmp snmp-mibs-downloader\
- snmp &&\
- apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
-
- RUN chown -R zabbix:zabbix /etc/zabbix &&\
- mkdir -p /var/run/zabbix &&\
- chown zabbix:zabbix /var/run/zabbix/
-
- RUN rm -rf /var/log/* &&\
- mkdir -p /var/log/zabbix/ &&\
- chown zabbix:zabbix /var/log/zabbix/ &&\
- ln -s /dev/stdout /var/log/zabbix/zabbix_server.log
-
- RUN chmod u+s /usr/bin/fping &&\
- chmod u+s /usr/bin/fping6
-
- COPY ./zabbix_server.conf /etc/zabbix/zabbix_server.conf
-
- COPY ./vars-vars /etc/vars-vars
-
- COPY ./vars-files /etc/vars-files
-
- COPY ./run.sh /run.sh
-
- EXPOSE 80
-
- USER zabbix
-
- CMD ["/run.sh"]
|