Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port for armv7 (Raspberry Pi) #57

Open
domib97 opened this issue Apr 4, 2021 · 1 comment
Open

Port for armv7 (Raspberry Pi) #57

domib97 opened this issue Apr 4, 2021 · 1 comment

Comments

@domib97
Copy link

domib97 commented Apr 4, 2021

Could you port this good docker image to armv7 (Raspberry Pi)? Or could you explain me how I could do it?

@ronaldn1969
Copy link

ronaldn1969 commented Feb 24, 2022

Hi

Long time a go, that you asked, but maybe there are more who are interessted in... So, here is my way to do it... And I do this very often, to have the actual versions of grafana.

Cheers
Ronald

Build your modified docker image

I recommend to use the "opt" folder to build the docker image

First clone the code from github to your pi or whatever system

cd /opt/
sudo git clone https://github.com/philhawthorne/docker-influxdb-grafana
cd docker-influxdb-grafana

If you want to use newer versions of influxdb, chronograph and grafana you have to change the version in line 8 and following in the Dockerfile. For InflusDB v2.x you have to have a 64bit OS

# Default versions
ENV INFLUXDB_VERSION=1.8.10
ENV CHRONOGRAF_VERSION=1.9.3
ENV GRAFANA_VERSION=8.4.1

if you also want to bullseye instead of buster, you have to change the first line

FROM debian:buster-slim to FROM debian:bullseye-slim

You can also change to a new version of nodejs. Therefor you have to modify line 46

&& curl -sL https://deb.nodesource.com/setup_17.x | bash - \

Afterwards you can build your docker image with

sudo docker build -t influx-grafana .

Start grafana without login screen

Should you like to deactivate the login screen in grafana, you have to modify the grafana.ini in folder "grafana" You have to delete the ";"

          #disable_login_form = true  (line 182)

          # enable anonymous access   (line 186)
          enabled = true          

          # specify role for unauthenticated users  --- Org Viewer   (line 192)
          org_role = Admin 

Enable https for grafana GUI

If you want to use https instead of http to access the grafana GUI you have to do modify the grafana.ini

#################################### Server ####################################
[server]
# Protocol (http or https)
protocol = https

# The full public facing url you use in browser, used for redirects and emails
# If you use reverse proxy and sub path specify full url (with sub path)
root_url = https://localhost:3003

# https certs & key file
cert_file = /var/lib/grafana/MyClientCert-pub.crt
cert_key = /var/lib/grafana/MyClientCert-priv.key

If you didn't use /var/lib/grafana/ as persistent folder, you have to change the path for the cert_file and cert_key regarding your settings.

I did it only for grafana, because I didn't use Chronograf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants