Skip to content
This repository was archived by the owner on Dec 30, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM ubuntu:14.04
FROM ubuntu:20.04

MAINTAINER Leo Unbekandt <leo@scalingo.com>

RUN adduser --system --home /var/lib/munin --shell /bin/false --uid 1103 --group munin

RUN apt-get update -qq && RUNLEVEL=1 DEBIAN_FRONTEND=noninteractive \
apt-get install -y -qq cron munin munin-node nginx wget heirloom-mailx patch spawn-fcgi libcgi-fast-perl
apt-get install -y -qq cron munin munin-node nginx wget bsd-mailx patch spawn-fcgi libcgi-fast-perl telnet
RUN rm /etc/nginx/sites-enabled/default && mkdir -p /var/cache/munin/www && chown munin:munin /var/cache/munin/www && mkdir -p /var/run/munin && chown -R munin:munin /var/run/munin

VOLUME /var/lib/munin
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ For a bit of persistency

```
docker build -t munin-server .

# docker build --network=host -t munin-server .

docker run -d \
-p 8080:8080 \
-v /var/log/munin:/var/log/munin \
Expand All @@ -77,6 +80,8 @@ docker run -d \
munin-server
```

A simple `run-image` example is provided which assumes `munin.conf` contains environment variable values, or copied from a local Munin server instance.

You can now reach your munin-server on port 8080 of your host. It will display at the first run:

```
Expand Down
8 changes: 8 additions & 0 deletions run-image
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
docker run -d --name=munin --net=host \
-v /var/log/munin:/var/log/munin \
-v /var/lib/munin:/var/lib/munin \
-v /var/run/munin:/var/run/munin \
-v /var/cache/munin:/var/cache/munin \
-e MUNIN_USERS='munin' \
-e MUNIN_PASSWORDS='munin' \
munin-server