-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
23 lines (19 loc) · 859 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM alpine:latest
LABEL org.label-schema.name="docker-collectd-fritzcollectd" \
org.label-schema.description="Fritzbox collectd" \
org.label-schema.url="https://github.com/acidhunter" \
authors="Martin Friedrich" \
maintainer="[email protected]"
# Packages
RUN apk update
RUN apk -U add py2-pip gcc python2-dev musl-dev
RUN apk -U add linux-headers libxml2-dev libxml2 py2-libxml2 libxslt libxslt-dev
RUN apk -U add collectd collectd-python gettext libintl
RUN pip install lxml requests fritzconnection fritzcollectd
ENV FB_IP=192.168.178.1 \
FB_USER=monitor \
FB_PW=setapassword \
GRAPHITE_HOST=graphite \
ESC='$'
COPY collectd/collectd.tmpl /etc/collectd/collectd.tmpl
CMD /bin/sh -c "envsubst < /etc/collectd/collectd.tmpl > /etc/collectd/collectd.conf && /usr/sbin/collectd -f || cat /etc/collectd/collectd.conf"