docker-storcli-prometheus/Dockerfile

11 lines
368 B
Docker

FROM centos:7
RUN curl -sSL http://dl.marmotte.net/rpms/redhat/el6/x86_64/storcli-1.16.06-2/storcli-1.16.06-2.x86_64.rpm > /tmp/storcli.rpm \
&& rpm -ivh /tmp/storcli.rpm \
&& rm /tmp/storcli.rpm
ADD https://raw.githubusercontent.com/prometheus/node_exporter/v0.16.0/text_collector_examples/storcli.py /storcli.py
COPY entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]