6417595b9f
Added grafana repository to base image Co-Authored-By: zhubingbing <zhubingbing10@gmail.com> Installed grafana from repository Change-Id: Ib99195ec4522f185f6fd4cebf10e305bb58f69c4 Partially-Implements: Blueprint performance-monitoring
23 lines
575 B
Django/Jinja
23 lines
575 B
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
|
|
MAINTAINER {{ maintainer }}
|
|
|
|
{% block grafana_header %}{% endblock %}
|
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
{% set grafana_packages = ['grafana'] %}
|
|
{{ macros.install_packages(grafana_packages | customizable("packages")) }}
|
|
|
|
RUN usermod -a -G kolla grafana
|
|
|
|
WORKDIR /usr/share/grafana
|
|
|
|
COPY grafana_sudoers /etc/sudoers.d/kolla_grafana_sudoers
|
|
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
|
|
|
{% block grafana_footer %}{% endblock %}
|
|
{% block footer %}{% endblock %}
|
|
{{ include_footer }}
|
|
|
|
USER grafana
|