forked from sahsu/docker-munin-node
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
25 lines (18 loc) · 891 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
24
25
FROM ubuntu:16.04
# Now we DO need these, for the auto-labeling of the image
ARG BUILD_DATE
ARG VCS_REF
# Good docker practice, plus we get microbadger badges
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-url="https://github.com/funkypenguin/docker-munin-node.git" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.schema-version="2.2-r1"
# munin 2.0.55
RUN apt-get update -y && \
apt-get install -y munin-node telnet mtr wget dnsutils && \
apt-get clean && \
rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/* /tmp/* /var/tmp/*
ADD ./plugins/* /usr/share/munin/plugins/
RUN ln -s /usr/share/munin/plugins/cpu_by_process /etc/munin/plugins/cpu_by_process && munin-node-configure --shell | sh && mkdir -p /var/log/munin/; chown -R munin:munin /var/log/munin/
ADD bootstrap.sh /root/bootstrap.sh
CMD /root/bootstrap.sh