Skip to content

Commit

Permalink
Dockerfile : avoid munin cron tasks and associated logs
Browse files Browse the repository at this point in the history
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
  • Loading branch information
zavpyj committed Jun 15, 2017
1 parent 460880f commit a8e9453
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Expand Up @@ -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 && \
Expand Down

0 comments on commit a8e9453

Please sign in to comment.