fix grafana template

This commit is contained in:
Nadezhda Fedorova 2024-06-10 13:05:26 +03:00
parent 0e8a71d1cf
commit 733f065152

View File

@ -8,14 +8,7 @@ LABEL org.opencontainers.image.source="https://github.com/grafana/grafana"
LABEL org.opencontainers.image.licenses="AGPL-3.0-only AND Apache-2.0"
LABEL org.opencontainers.image.vendor="ALT Linux Team"
{{ install_packages(
"grafana",
#"grafana-dashboards-ceph",
) }}
#RUN echo $'[dashbords.json] \n\
# enabled = true \n\
# path = /var/lib/grafana-dashboards-ceph' > /etc/grafana/grafana.ini
{{ install_packages("grafana") }}
USER grafana
EXPOSE 3000
@ -26,4 +19,4 @@ ENV GF_AUTH_ANONYMOUS_ENABLED=true
ENV GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
ENTRYPOINT [ "/usr/bin/grafana" ]
CMD [ "server", "--config=/etc/grafana/grafana.ini", "--homepath=/usr/share/grafana", "--packaging=docker", "-configOverrides='cfg:default.paths.provisioning=/etc/grafana/provisioning cfg:default.paths.data=/var/lib/gra fana cfg:default.paths.logs=/var/log/grafana cfg:default.paths.plugins=/var/lib/grafana/plugins'" ]
CMD [ "server", "--config=/etc/grafana/grafana.ini", "--homepath=/usr/share/grafana", "--packaging=docker", "-configOverrides='cfg:default.paths.provisioning=/etc/grafana/provisioning cfg:default.paths.data=/var/lib/grafana cfg:default.paths.logs=/var/log/grafana cfg:default.paths.plugins=/var/lib/grafana/plugins'" ]