#!/usr/bin/env bash

set -euf -o pipefail

GRAFANA_VERSION=4.5.2

# Copy configuration files
cp /tmp/files/grafana/grafana.ini $PWD

# Run Grafana automatically with Docker
docker run -d -p 3000:3000 \
  --restart unless-stopped \
  -v /var/lib/grafana:/var/lib/grafana \
  -v $PWD/grafana.ini:/etc/grafana/grafana.ini \
  --name=grafana \
  grafana/grafana:$GRAFANA_VERSION

#!/usr/bin/env bash

set -euf -o pipefail

GRAFANA_VERSION=4.5.2
GRAFANA_PLUGINS="raintank-worldping-app"

# Copy configuration files
cp /tmp/files/grafana/grafana.ini $PWD

# Run Grafana automatically with Docker
docker run -d -p 3000:3000 \
  --restart unless-stopped \
  -v /var/lib/grafana:/var/lib/grafana \
  -v $PWD/grafana.ini:/etc/grafana/grafana.ini \
  -e "GF_INSTALL_PLUGINS=$GRAFANA_PLUGINS"\
  --name=grafana \
  grafana/grafana:$GRAFANA_VERSION

Add plugins to grafana installation
Add plugins to grafana installation
