From 810dac49e96193b447d231d25d6522eef2e62d02 Mon Sep 17 00:00:00 2001 From: Taras Chornyi Date: Mon, 21 Aug 2017 17:09:17 +0300 Subject: docker: Added docker container for running collectd Added InfluxDB and Grafana containers. Change-Id: Ifa46fac03c0175267d9cbffed5354193ad182733 Signed-off-by: Taras Chornyi --- docker/Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 docker/Dockerfile (limited to 'docker/Dockerfile') 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 -- cgit 1.2.3-korg