Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Grafana Docker Image for Openshift

Notifications You must be signed in to change notification settings

hgranillo/grafana-openshift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grafana docker image for Openshift Cluster

This build is based on the official Grafana docker image.

Theres several projects on Github that fixes this issue. But none of them reuses the run.sh script from the official image, or uses a diferent distribution to build the image.

In this project I use the official Dockerfile as a starting point and a modified version of their entrypoint script.

Why?

Official Grafana docker image needs root to execute run.sh. Since the container starts with other uid - witch is not root - it cannot execute chown directories.

chown: changing ownership of '/var/lib/grafana': Operation not permitted
chown: changing ownership of '/var/log/grafana': Operation not permitted

Configuration

The recommended way to configure this image is using environment variables, http://docs.grafana.org/installation/configuration/#using-environment-variables

For example:

- name: GF_DATABASE_URL
  value: "${GF_DATABASE_URL}"
- name: GF_SECURITY_ADMIN_USER
  value: "${GF_SECURITY_ADMIN_USER}"
- name: GF_SECURITY_ADMIN_PASSWORD
  value: "${GF_SECURITY_ADMIN_PASSWORD}"
- name: GF_USERS_ALLOW_SIGN_UP
  value: "${GF_USERS_ALLOW_SIGN_UP}"
- name: GF_AUTH_ANONYMOUS_ENABLED
  value: "${GF_AUTH_ANONYMOUS_ENABLED}"
- name: GF_AUTH_ANONYMOUS_ORG_ROLE
  value: "${GF_AUTH_ANONYMOUS_ORG_ROLE}"

About

Grafana Docker Image for Openshift

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages