Add sudo again to collectd Dockerfile

This commit is contained in:
Bram Veenboer
2024-12-29 12:29:39 +01:00
parent 75eb03d763
commit f79818bd3e

View File

@@ -29,6 +29,9 @@ ENV PATH="$PATH:/opt/pmt/bin"
RUN apt -y remove make g++ python3-dev python3-pybind11 cmake
RUN apt autoremove -y
RUN useradd collectd
RUN apt -y install sudo
RUN adduser collectd
RUN usermod -aG sudo collectd
RUN echo 'collectd ALL=(ALL) NOPASSWD:ALL' | sudo tee /etc/sudoers.d/collectd
CMD ["/usr/sbin/collectd", "-f"]