36 lines
1.1 KiB
Docker
36 lines
1.1 KiB
Docker
FROM debian:bookworm
|
|
|
|
ENV LC_ALL=C
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
ENV TIMEZONE=Europe/Amsterdam
|
|
|
|
RUN apt update
|
|
RUN apt dist-upgrade -y --no-install-recommends
|
|
|
|
RUN echo $TIMEZONE > /etc/timezone
|
|
RUN dpkg-reconfigure -f noninteractive tzdata
|
|
|
|
RUN apt install -y libsensors5 liblzo2-2 collectd sudo btrfs-progs libatasmart4 speedtest-cli
|
|
|
|
RUN apt install -y smartmontools
|
|
|
|
RUN apt install -y wget git
|
|
|
|
ENV HDDTEMP_VERSION=0.2.4
|
|
RUN wget https://github.com/slowpeek/hddtemp/archive/refs/tags/${HDDTEMP_VERSION}.tar.gz \
|
|
&& tar xvf ${HDDTEMP_VERSION}.tar.gz && mv hddtemp-${HDDTEMP_VERSION}/hddtemp-lt /usr/sbin/hddtemp
|
|
|
|
RUN apt install -y gcc python3-dev make
|
|
RUN git clone https://github.com/RRZE-HPC/likwid.git
|
|
RUN cd likwid && make -j && make install
|
|
RUN git clone https://github.com/RRZE-HPC/pylikwid.git
|
|
RUN cd pylikwid && python3 setup.py build_ext && python3 setup.py install
|
|
RUN apt remove -y gcc python-dev make
|
|
RUN apt autoremove -y
|
|
|
|
RUN useradd collectd
|
|
RUN usermod -aG sudo collectd
|
|
RUN echo 'collectd ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers.d/collectd
|
|
|
|
CMD /usr/sbin/collectd -f
|