blob: e99b0652a132724ecdbffd1ebab9dbcf388a4739 (
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
|
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"]
|