Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnewhall authored Oct 13, 2023
1 parent 2861ef1 commit 1cb2dc2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM telegraf:1.28@sha256:45044de12342a3e6605a2519cc1b9c9b5e5da7f80bf906121155f852744425fb

RUN apt update && apt install -y --no-install-recommends \
sudo mtr-tiny lm-sensors smartmontools ipmitool nvme-cli && \
rm -rf /var/lib/apt/lists/* && \
echo 'telegraf ALL=NOPASSWD:/usr/sbin/smartctl *' | tee /etc/sudoers.d/telegraf && \
echo 'telegraf ALL=NOPASSWD:/usr/sbin/nvme *' | tee -a /etc/sudoers.d/telegraf && \
echo 'telegraf ALL=NOPASSWD:/usr/bin/ipmitool *' | tee -a /etc/sudoers.d/telegraf && \
echo "Done."
sudo mtr-tiny lm-sensors smartmontools ipmitool nvme-cli && \
rm -rf /var/lib/apt/lists/* && \
echo 'telegraf ALL=NOPASSWD:/usr/sbin/smartctl *' | tee /etc/sudoers.d/telegraf && \
echo 'telegraf ALL=NOPASSWD:/usr/sbin/nvme *' | tee -a /etc/sudoers.d/telegraf && \
echo 'telegraf ALL=NOPASSWD:/usr/bin/ipmitool *' | tee -a /etc/sudoers.d/telegraf && \
echo "Done."

LABEL org.opencontainers.image.source="https://github.com/influxdata/telegraf" \
org.opencontainers.image.url="https://github.com/golift/telegraf-docker"
Expand Down

0 comments on commit 1cb2dc2

Please sign in to comment.