forked from wayt/docker-munin-node
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
21 lines (15 loc) · 779 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM ubuntu:14.04
# munin 2.0.55
RUN apt-get update -y && \
apt-get install -y software-properties-common && \
add-apt-repository -y ppa:pneu/munin && \
apt-get update -y && \
apt-get clean && rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/* /tmp/* /var/tmp/*
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