kolla/docker/gnocchi/gnocchi-base/Dockerfile.j2
Michal Arbet 76d78b50c0 Fix gnocchi and skyline after requirements change
Global-requirements changed upper-constraints in [1].
Because of that change skyline and gnocchi build is now failing.

This patch fixes upper-constraints for those projects.

[1] https://review.opendev.org/c/openstack/requirements/+/900435

Change-Id: I09cc2635cd422a859ccded887affb58dfbdc60ad
2024-01-23 08:44:53 +01:00

56 lines
1.6 KiB
Django/Jinja

FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
{% block labels %}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% endblock %}
{% block gnocchi_base_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{{ macros.configure_user(name='gnocchi') }}
{{ macros.enable_extra_repos(['ceph']) }}
{% if base_package_type == 'rpm' %}
{% set gnocchi_base_packages = [
'librados2-devel',
'python3-rados',
] %}
RUN mkdir -p /var/www/cgi-bin/gnocchi
{% elif base_package_type == 'deb' %}
{% set gnocchi_base_packages = [
'librados-dev',
'python3-rados',
] %}
{% endif %}
{{ macros.install_packages(gnocchi_base_packages | customizable("packages")) }}
ADD gnocchi-base-archive /gnocchi-base-source
{% set gnocchi_base_pip_packages = [
'gnocchiclient',
'/gnocchi[keystone,mysql,file,ceph,s3]'
] %}
COPY extend_start.sh /usr/local/bin/kolla_extend_start
COPY gnocchi_sudoers /etc/sudoers.d/kolla_gnocchi_sudoers
RUN {{ macros.upper_constraints_version_change("Werkzeug", "3.0.1", "2.2.3") }}
RUN ln -s gnocchi-base-source/* gnocchi \
&& {{ macros.install_pip(gnocchi_base_pip_packages | customizable("pip_packages")) }} \
&& mkdir -p /etc/gnocchi \
&& cp /etc/pycadf/gnocchi_api_audit_map.conf /etc/gnocchi/ \
&& chmod 750 /etc/sudoers.d \
&& chmod 640 /etc/sudoers.d/kolla_gnocchi_sudoers \
&& touch /usr/local/bin/kolla_gnocchi_extend_start \
&& chmod 644 /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_gnocchi_extend_start
{% block gnocchi_base_footer %}{% endblock %}