Docker project to build Grafana images (for ARM)
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.travis.yml
Dockerfile
Dockerfile.armhf
LICENSE
README.md
manifest.yml

README.md

Grafana on ARM

This project produces Grafana Docker images for ARM hosts.

The available tags are:

  • armhf: for 32-bits ARM hosts (built on Travis)
    Layers
  • aarch64: for 64-bits ARM hosts (also built on Travis)
    Layers

The images are all based on Debian with the ARM images having a small QEMU binary to be able to build them on x64 hosts.

Usage

The image uses a similar startup command to the offical grafana/grafana image's. To be exact:

ENTRYPOINT  [ "/usr/sbin/grafana-server" ]
CMD         [ "--homepath=/usr/share/grafana",                        \
              "--config=/etc/grafana/grafana.ini",                    \
              "$@",                                                   \
              "cfg:default.log.mode=console",                         \
              "cfg:default.paths.data=/var/lib/grafana",              \
              "cfg:default.paths.logs=/var/log/grafana",              \
              "cfg:default.paths.plugins=/var/lib/grafana/plugins" ]

This is a multi-arch image, so latest will resolve to the image that matches the target CPU architecture.

If you prefer, you can explicitly run the platform-specific version, though there is not much reason to. In this case, use:

docker run -p 3000:3000 -v /tmp/grafana.ini:/etc/grafana/grafana.ini \
       rycus86/grafana:armhf

This will use the Grafana config from /tmp/grafana.ini to start the server on port 3000 on 32-bits ARM hosts.

To run it with docker-compose:

version: '2'
services:

  grafana:
    image: rycus86/grafana
    restart: always
    ports:
     - "3000:3000"
    volumes:
     - /tmp/grafana.ini:/etc/grafana/grafana.ini

This will start the 64-bits version with the same configuration as above.