From a8e9453d9e10b464ca205dc562b70f039949f939 Mon Sep 17 00:00:00 2001 From: zavpyj Date: Thu, 15 Jun 2017 20:55:02 +0200 Subject: [PATCH] Dockerfile : avoid munin cron tasks and associated logs Avoid this logs : (CRON) info (No MTA installed, discarding output) (munin) CMD (if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi) (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif... (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1) Unsuccessful test : Deletion fo munin have this consequence : AH00526: Syntax error on line 74 of /etc/apache2/apache2.conf: Invalid Mutex directory in argument file:/var/lock/apache2 --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 7b36c20..c725f35 100644 --- a/Dockerfile +++ b/Dockerfile @@ -76,6 +76,9 @@ RUN apt-get update -y && apt-get install -y \ wget \ zlib1g-dev +# Avoid munin cron tasks and associated logs +RUN rm -f /etc/cron.d/munin /etc/cron.d/munin-node /etc/cron.d/sysstat + # Install osm2pgsql ENV OSM2PGSQL_VERSION 0.92.0 RUN git clone --depth 1 --branch ${OSM2PGSQL_VERSION} https://github.com/openstreetmap/osm2pgsql.git /tmp/osm2pgsql && \