2015-09-17 09:35:33 -07:00
|
|
|
FROM {{ namespace }}/{{ image_prefix }}gnocchi-base:{{ tag }}
|
2017-05-02 16:23:09 +09:00
|
|
|
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
2016-09-07 18:15:01 +01:00
|
|
|
|
|
|
|
{% block gnocchi_api_header %}{% endblock %}
|
|
|
|
|
2016-07-23 10:09:30 +05:30
|
|
|
{% import "macros.j2" as macros with context %}
|
2015-08-19 05:23:05 +00:00
|
|
|
|
|
|
|
{% if install_type == 'binary' %}
|
2016-11-03 10:37:21 +01:00
|
|
|
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
|
2016-07-23 10:09:30 +05:30
|
|
|
{% set gnocchi_api_packages = [
|
|
|
|
'openstack-gnocchi-api',
|
|
|
|
'openstack-gnocchi-indexer-sqlalchemy'
|
|
|
|
] %}
|
2017-02-12 18:36:51 +01:00
|
|
|
{% elif base_distro in ['debian', 'ubuntu'] %}
|
2016-07-23 10:09:30 +05:30
|
|
|
{% set gnocchi_api_packages = ['gnocchi-api'] %}
|
2015-08-19 05:23:05 +00:00
|
|
|
{% endif %}
|
2016-08-12 08:24:11 +10:00
|
|
|
{{ macros.install_packages(gnocchi_api_packages | customizable("packages")) }}
|
2015-08-19 05:23:05 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2016-07-23 10:09:30 +05:30
|
|
|
COPY extend_start.sh /usr/local/bin/kolla_gnocchi_extend_start
|
|
|
|
RUN chmod 755 /usr/local/bin/kolla_gnocchi_extend_start
|
2015-08-28 13:17:41 +03:00
|
|
|
|
2016-07-23 10:09:30 +05:30
|
|
|
{% block gnocchi_api_footer %}{% endblock %}
|
|
|
|
{% block footer %}{% endblock %}
|