forked from wesparish/docker-gpu-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (21 loc) · 824 Bytes
/
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
#FROM wesparish/nvidia:384.90
FROM wesparish/nvidia:384.90-ubuntu1604
RUN apt-get update && \
apt-get install python python-pip lm-sensors vim curl -y && \
apt-get autoremove -y && \
apt-get clean
RUN curl -OJL https://pypi.python.org/packages/4e/11/c17454160e80a60587adcb511b760a6ddf8b2d60683bb0edd85919199adf/PySensors-0.0.3.tar.gz && \
tar -xzvf PySensors-0.0.3.tar.gz && \
cd PySensors-0.0.3 && \
python setup.py install && \
cd / && \
rm -rf PySensors-0.0.3
RUN pip install 'elasticsearch>=6.0.0'
ENV ES_HOSTS="elasticsearch.weshouse:9200" \
LOG_LEVEL="WARN" \
SLEEP_TIME=60
COPY get-gpu-sensors.py /get-gpu-sensors.py
RUN chown root:root /get-gpu-sensors.py
COPY docker-entrypoint.sh /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["/get-gpu-sensors.py"]