Files
glances/docker-files
Zameer Manji 605207f154 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>
>
```
2021-09-08 19:52:01 -04:00
..
2021-07-25 14:40:42 +02:00

Dockerfiles

The Dockerfiles used here are using multi-staged builds. For building a specific stage locally docker needs to know the target stage with --target.

Examples

For the dev image: bash docker build --target dev -f docker-files/debian.Dockerfile -t glances .

For the minimal image: bash docker build --target minimal -f docker-files/debian.Dockerfile -t glances .

For the full image: bash docker build --target full -f docker-files/debian.Dockerfile -t glances .