summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZameer Manji <zmanji@gmail.com>2021-09-08 19:52:01 -0400
committerGitHub <noreply@github.com>2021-09-08 19:52:01 -0400
commit605207f154fc2ab1f28ac5c3fc167641ba161ed2 (patch)
treea293e34c30730ac94fb2087d94e2b9d5a5c087e6
parentc2da541c0a858337078588cc636219abb2adcbf2 (diff)
Update debian image to include `smartmontools`
This adds the `smartmontools` package to the debian based Docker image. This package provides the `smartctl` binary which the `pySMART.smartx` package requires. Without this change, in the Docker container, with `--device=/dev/sda:/dev/sda` passed to `docker run` ``` # python3 Python 3.9.6 (default, Aug 17 2021, 02:38:04) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from pySMART import DeviceList >>> DeviceList() <DeviceList contents: > ``` With this change: ``` # python3 Python 3.9.6 (default, Aug 17 2021, 02:38:04) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> ifrom pySMART import DeviceList KeyboardInterrupt >>> from pySMART import DeviceList >>> DeviceList() <DeviceList contents: <SCSI device on /dev/sda mod:None sn:AB202000000000001398> > ```
-rw-r--r--docker-files/debian.Dockerfile2
1 files changed, 2 insertions, 0 deletions
diff --git a/docker-files/debian.Dockerfile b/docker-files/debian.Dockerfile
index c9105e1d..1eb9d8da 100644
--- a/docker-files/debian.Dockerfile
+++ b/docker-files/debian.Dockerfile
@@ -14,6 +14,7 @@ RUN apt-get update && \
build-essential \
lm-sensors \
wireless-tools \
+ smartmontools \
iputils-ping && \
apt-get clean && rm -rf /var/lib/apt/lists/*
@@ -57,6 +58,7 @@ RUN apt-get update && \
curl \
lm-sensors \
wireless-tools \
+ smartmontools \
iputils-ping && \
apt-get clean && rm -rf /var/lib/apt/lists/*