From f0aaa45fd7932508bcee3311a34b632433502a4a Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Wed, 19 Apr 2017 11:15:19 +0200 Subject: grafana: disable for non-x86 Kolla depends on upstream version of Grafana and those are provided only for x86-64 architecture. On other archs package from distribution can be fetched but build then fail due to version differences. And it does not look like there will be newer version in distributions: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=835210 Partially-Implements: blueprint multiarch-and-arm64-containers Change-Id: I62911fd3cabdc25c23e93d621ebe2464f8e4fb6e --- docker/grafana/Dockerfile.j2 | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docker') diff --git a/docker/grafana/Dockerfile.j2 b/docker/grafana/Dockerfile.j2 index cf4665b97..c86d674c6 100644 --- a/docker/grafana/Dockerfile.j2 +++ b/docker/grafana/Dockerfile.j2 @@ -5,6 +5,13 @@ MAINTAINER {{ maintainer }} {% import "macros.j2" as macros with context %} +{% if base_arch != 'x86_64' %} + +RUN echo 'There are no Grafana external repositories for {{ base_arch }}' \ + && /bin/false + +{% endif %} + {{ macros.configure_user(name='grafana', homedir='/usr/share/grafana') }} {% set grafana_packages = ['grafana'] %} -- cgit v1.2.3