7461c9d74f
Add miss chmod 755 /usr/local/bin/kolla_extend_start in grafana Change-Id: I536bf73f8586a7159f9018dc581c4f0dc0d5b807 Closes-Bug: #1655588
27 lines
781 B
Django/Jinja
27 lines
781 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")) }}
|
|
|
|
WORKDIR /usr/share/grafana
|
|
|
|
COPY grafana_sudoers /etc/sudoers.d/kolla_grafana_sudoers
|
|
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
|
|
|
RUN grafana-cli plugins install sileht-gnocchi-datasource \
|
|
&& chmod 750 /etc/sudoers.d \
|
|
&& chmod 440 /etc/sudoers.d/kolla_grafana_sudoers \
|
|
&& chmod 755 /usr/local/bin/kolla_extend_start \
|
|
&& usermod -a -G kolla grafana
|
|
|
|
{% block grafana_footer %}{% endblock %}
|
|
{% block footer %}{% endblock %}
|
|
{{ include_footer }}
|
|
|
|
USER grafana
|