From b63f56e391bc7e742cdb0d36c7848760bfe924ce Mon Sep 17 00:00:00 2001 From: Ben Kochie Date: Mon, 8 Aug 2022 15:44:02 +0200 Subject: [PATCH] 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 --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0f81c4b..f45fcd8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 " +RUN apk install smartmontools + ARG ARCH="amd64" ARG OS="linux" COPY .build/${OS}-${ARCH}/smartctl_exporter /bin/smartctl_exporter