FROM debian:bookworm ARG namespace RUN \ apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y curl RUN \ curl -s -o /etc/apt/trusted.gpg.d/naemon.asc "https://build.opensuse.org/projects/home:naemon/signing_keys/download?kind=gpg" \ && echo "deb [signed-by=/etc/apt/trusted.gpg.d/naemon.asc] http://download.opensuse.org/repositories/home:/naemon/Debian_$(. /etc/os-release && echo "$VERSION_ID")/ ./" >> /etc/apt/sources.list.d/naemon-stable.list # Install the baseline packages for this image. Note, these # packages are not version controlled and may change between # builds. RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive \ # La liste des packages debian à installer est directement fournie par Immae apt-get install -y $(curl -s https://status.immae.eu/${namespace:-common}/debian-packages) # Perform the data directory initialization RUN mkdir -p /data/var/log/naemon \ && rm -rf /var/log/naemon \ && ln -s /data/var/log/naemon /var/log/naemon \ && find /etc/naemon -type f -not -name "naemon.cfg" -delete # Add the bootstrap script RUN curl https://status.immae.eu/common/run.sh > /run.sh RUN chmod 755 /run.sh # All data is stored on the root data volme VOLUME ["/data"] ENTRYPOINT ["/run.sh"]