Remove sudo from collectd
This commit is contained in:
@@ -3,13 +3,13 @@ FROM debian:bookworm
|
|||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
ENV TIMEZONE=Europe/Amsterdam
|
ENV TIMEZONE=Europe/Amsterdam
|
||||||
|
|
||||||
RUN apt update
|
RUN apt update --fix-missing
|
||||||
RUN apt dist-upgrade -y --no-install-recommends
|
RUN apt dist-upgrade -y --no-install-recommends
|
||||||
|
|
||||||
RUN echo $TIMEZONE > /etc/timezone
|
RUN echo $TIMEZONE > /etc/timezone
|
||||||
RUN dpkg-reconfigure -f noninteractive tzdata
|
RUN dpkg-reconfigure -f noninteractive tzdata
|
||||||
|
|
||||||
RUN apt install -y libsensors5 liblzo2-2 collectd sudo btrfs-progs libatasmart4 speedtest-cli
|
RUN apt install -y libsensors5 liblzo2-2 collectd btrfs-progs libatasmart4 speedtest-cli
|
||||||
|
|
||||||
RUN apt install -y smartmontools
|
RUN apt install -y smartmontools
|
||||||
|
|
||||||
@@ -30,7 +30,5 @@ RUN apt -y remove make g++ python3-dev python3-pybind11 cmake
|
|||||||
RUN apt autoremove -y
|
RUN apt autoremove -y
|
||||||
|
|
||||||
RUN useradd collectd
|
RUN useradd collectd
|
||||||
RUN usermod -aG sudo collectd
|
|
||||||
RUN echo 'collectd ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers.d/collectd
|
|
||||||
|
|
||||||
CMD ["/usr/sbin/collectd", "-f"]
|
CMD ["/usr/sbin/collectd", "-f"]
|
||||||
|
|||||||
Reference in New Issue
Block a user