diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2024-12-28 15:18:44 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2025-03-14 00:57:49 +0100 |
commit | ee99bd561bcb5cb0d8f18c5290840280018c35db (patch) | |
tree | fda41fcf2628d41d9e51e52efdbaebaba2baca9b /systems/monitoring-1/monitoring/Dockerfile | |
parent | 31e6906d71fb5e2133dd91d55196048fcc387ea0 (diff) | |
download | Nix-ee99bd561bcb5cb0d8f18c5290840280018c35db.tar.gz Nix-ee99bd561bcb5cb0d8f18c5290840280018c35db.tar.zst Nix-ee99bd561bcb5cb0d8f18c5290840280018c35db.zip |
Add docker monitoring
Diffstat (limited to 'systems/monitoring-1/monitoring/Dockerfile')
-rw-r--r-- | systems/monitoring-1/monitoring/Dockerfile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/systems/monitoring-1/monitoring/Dockerfile b/systems/monitoring-1/monitoring/Dockerfile new file mode 100644 index 0000000..4bbf01b --- /dev/null +++ b/systems/monitoring-1/monitoring/Dockerfile | |||
@@ -0,0 +1,35 @@ | |||
1 | FROM debian:bookworm | ||
2 | |||
3 | ARG namespace | ||
4 | |||
5 | RUN \ | ||
6 | apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ | ||
7 | curl \ | ||
8 | gnupg | ||
9 | |||
10 | RUN \ | ||
11 | curl -s "https://build.opensuse.org/projects/home:naemon/signing_keys/download?kind=gpg" | gpg --dearmor > /usr/share/keyrings/naemon.gpg \ | ||
12 | && 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 | ||
13 | |||
14 | # Install the baseline packages for this image. Note, these | ||
15 | # packages are not version controlled and may change between | ||
16 | # builds. | ||
17 | RUN apt-get update && \ | ||
18 | DEBIAN_FRONTEND=noninteractive \ | ||
19 | # La liste des packages debian à installer est directement fournie par Immae | ||
20 | apt-get install -y $(curl https://status.immae.eu/$namespace/debian-packages) | ||
21 | |||
22 | # Perform the data directory initialization | ||
23 | RUN mkdir -p /data/var/log/naemon \ | ||
24 | && rm -rf /var/log/naemon \ | ||
25 | && ln -s /data/var/log/naemon /var/log/naemon \ | ||
26 | && find /etc/naemon -type f -not -name "naemon.cfg" -delete | ||
27 | |||
28 | # Add the bootstrap script | ||
29 | RUN curl https://status.immae.eu/common/run.sh > /run.sh | ||
30 | RUN chmod 755 /run.sh | ||
31 | |||
32 | # All data is stored on the root data volme | ||
33 | VOLUME ["/data"] | ||
34 | |||
35 | ENTRYPOINT ["/run.sh"] | ||