-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
38 lines (27 loc) · 1.13 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM gliderlabs/alpine:latest
MAINTAINER matt maier <[email protected]>
COPY src/apk-installer /
RUN chmod +x /apk-installer
RUN /apk-installer collectd collectd-python collectd-network py-pip py-yaml
RUN pip install docker-py
RUN mkdir -p /opt/collectd/csv
RUN mkdir /opt/collectd/python
RUN touch /opt/collectd/python/__init__.py
COPY src/cadvisor/cadvisor-cli /opt/collectd/
COPY src/cadvisor/python/cadvisor.py /opt/collectd/python/
COPY src/cadvisor/python/cadvisor-metrics.py /opt/collectd/python/
COPY src/cadvisor/cadvisor-types.db /opt/collectd/
COPY src/mesos/mesos-cli /opt/collectd/
COPY src/mesos/python/mesos.py /opt/collectd/python/
COPY src/mesos/python/mesos_collectd.py /opt/collectd/python/
COPY src/mesos/python/mesos-master.py /opt/collectd/python/
COPY src/mesos/python/mesos-slave.py /opt/collectd/python/
COPY src/mesos/mesos-types.db /opt/collectd/
COPY collectd-launch.sh /
RUN chown nobody /opt/collectd/cadvisor-cli
RUN chmod +x /opt/collectd/cadvisor-cli
RUN chown nobody /opt/collectd/mesos-cli
RUN chmod +x /opt/collectd/mesos-cli
RUN chmod +x /collectd-launch.sh
VOLUME /etc/collectd
CMD ["/collectd-launch.sh"]