blob: 4bbf01be37f9f04a5cd4b734cabb1573b3b4dd70 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
FROM debian:bookworm
ARG namespace
RUN \
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
curl \
gnupg
RUN \
curl -s "https://build.opensuse.org/projects/home:naemon/signing_keys/download?kind=gpg" | gpg --dearmor > /usr/share/keyrings/naemon.gpg \
&& echo "deb [signed-by=/usr/share/keyrings/naemon.gpg] https://download.opensuse.org/repositories/home:/naemon/Debian_12/ ./" >> /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 https://status.immae.eu/$namespace/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"]
|