mirror of
https://github.com/prometheus-community/smartctl_exporter.git
synced 2024-12-21 02:21:55 +01:00
Add smartmontools to container image (#51)
Switch to using Alpine container and install smartmontools so the exporter can use the smartctl binary. Signed-off-by: SuperQ <superq@gmail.com>
This commit is contained in:
parent
920c3429b1
commit
b63f56e391
1 changed files with 3 additions and 1 deletions
|
@ -1,8 +1,10 @@
|
|||
ARG ARCH="amd64"
|
||||
ARG OS="linux"
|
||||
FROM quay.io/prometheus/busybox-${OS}-${ARCH}:glibc
|
||||
FROM ${ARCH}/alpine:3
|
||||
LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com>"
|
||||
|
||||
RUN apk install smartmontools
|
||||
|
||||
ARG ARCH="amd64"
|
||||
ARG OS="linux"
|
||||
COPY .build/${OS}-${ARCH}/smartctl_exporter /bin/smartctl_exporter
|
||||
|
|
Loading…
Reference in a new issue