mirror of
https://github.com/prometheus-community/smartctl_exporter.git
synced 2024-11-23 01:43:07 +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 ARCH="amd64"
|
||||||
ARG OS="linux"
|
ARG OS="linux"
|
||||||
FROM quay.io/prometheus/busybox-${OS}-${ARCH}:glibc
|
FROM ${ARCH}/alpine:3
|
||||||
LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com>"
|
LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com>"
|
||||||
|
|
||||||
|
RUN apk install smartmontools
|
||||||
|
|
||||||
ARG ARCH="amd64"
|
ARG ARCH="amd64"
|
||||||
ARG OS="linux"
|
ARG OS="linux"
|
||||||
COPY .build/${OS}-${ARCH}/smartctl_exporter /bin/smartctl_exporter
|
COPY .build/${OS}-${ARCH}/smartctl_exporter /bin/smartctl_exporter
|
||||||
|
|
Loading…
Reference in a new issue