Public Repository

Last pushed: 2 years ago
Short Description
GRAFANA VERSION 3.0.0-pre1
Full Description

Dockerfile:

FROM debian:jessie

ENV GRAFANA_VERSION 3.0.0-pre1

RUN apt-get update && \
    apt-get -y --no-install-recommends install libfontconfig curl ca-certificates && \
    apt-get clean && \
    curl https://grafanarel.s3.amazonaws.com/builds/grafana_${GRAFANA_VERSION}_amd64.deb > /tmp/grafana.deb && \
    dpkg -i /tmp/grafana.deb && \
    rm /tmp/grafana.deb && \
    curl -L https://github.com/tianon/gosu/releases/download/1.5/gosu-amd64 > /usr/sbin/gosu && \
    chmod +x /usr/sbin/gosu && \
    apt-get remove -y curl && \
    apt-get autoremove -y && \
    rm -rf /var/lib/apt/lists/*

VOLUME ["/var/lib/grafana", "/var/log/grafana", "/etc/grafana"]

EXPOSE 8081

COPY ./run.sh /run.sh

ENTRYPOINT ["/run.sh"]

How to run:

docker run -d -p 8081:8081 \
-e "GF_DATABASE_TYPE=mysql" \
-e "GF_DATABASE_HOST=myhost.rds.amazonaws.com:3306" \
-e "GF_DATABASE_NAME=GrafanaDB" \
-e "GF_DATABASE_USER=grafana_user" \
-e "GF_DATABASE_PASSWORD=grafana_password" \
-e "GF_SERVER_PROTOCOL=http" \
-e "GF_SERVER_HTTP_PORT=8081" \
-e "GF_SERVER_DOMAIN=localhost" \
-e "GF_SECURITY_ADMIN_USER=ADMIN" \
-e "GF_SECURITY_ADMIN_PASSWORD=PASSWORD" \
mrh666/grafana:3.0.0-pre1
Docker Pull Command
Owner
mrh666

Comments (0)