gnocchi: take care of centos/source on non-x86

As for Debian we need to install blas/lapack devel headers to build
scipy.

Change-Id: I2e0257072192bae6b689d549df12a05196ff7698
Partially-Implements: blueprint multiarch-and-arm64-containers
This commit is contained in:
Marcin Juszkiewicz
2017-05-26 12:12:35 +02:00
parent 331632f879
commit 857ca7033f

View File

@@ -46,6 +46,17 @@ RUN truncate -s 0 /etc/apache2/ports.conf
'python-ldappool',
'python-rados'
] %}
# on x86-64 pip grabs precompiled numpy/scipy - on aarch64/ppc64le
# it needs to be built
{% if base_arch != 'x86_64' %}
{% set gnocchi_base_packages = gnocchi_base_packages + [
'blas-devel',
'lapack-devel'
] %}
{% endif %}
{{ macros.install_packages(gnocchi_base_packages | customizable("packages")) }}
RUN mkdir -p /var/www/cgi-bin/gnocchi \
&& sed -i -r 's,^(Listen 80),#\1,' /etc/httpd/conf/httpd.conf \