summaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile
diff options
context:
space:
mode:
authorTaras Chornyi <tarasx.chornyi@intel.com>2017-08-21 17:09:17 +0300
committerTaras Chornyi <tarasx.chornyi@intel.com>2017-11-17 14:16:20 +0000
commit810dac49e96193b447d231d25d6522eef2e62d02 (patch)
tree152d3f81194865e033ee6f114c8177c8b7aa806a /docker/Dockerfile
parentecf1ba1c5000718d1f0d90270af33039b488c835 (diff)
docker: Added docker container for running collectd
Added InfluxDB and Grafana containers. Change-Id: Ifa46fac03c0175267d9cbffed5354193ad182733 Signed-off-by: Taras Chornyi <tarasx.chornyi@intel.com>
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r--docker/Dockerfile18
1 files changed, 18 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
new file mode 100644
index 00000000..0b4944e9
--- /dev/null
+++ b/docker/Dockerfile
@@ -0,0 +1,18 @@
+FROM centos:7
+
+RUN yum update -y
+RUN yum install -y which sudo
+ENV DOCKER y
+COPY systems /systems
+COPY src /src
+COPY 3rd_party /3rd_party
+COPY mibs /mibs
+
+WORKDIR /systems
+RUN sh ./build_base_machine.sh
+RUN useradd -ms /bin/bash collectd_exec
+RUN echo "collectd_exec ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
+WORKDIR /src
+
+COPY docker/run_collectd.sh /run_collectd.sh
+RUN chmod +x /run_collectd.sh