mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-01 05:54:46 +03:00
605207f154
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> > ``` |
||
---|---|---|
.. | ||
alpine.Dockerfile | ||
debian.Dockerfile | ||
README.md |
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 .