From 605207f154fc2ab1f28ac5c3fc167641ba161ed2 Mon Sep 17 00:00:00 2001 From: Zameer Manji Date: Wed, 8 Sep 2021 19:52:01 -0400 Subject: [PATCH] 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() ``` 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() > ``` --- docker-files/debian.Dockerfile | 2 ++ 1 file changed, 2 insertions(+) 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/*