Kolla provides production-ready containers and deployment tools for operating OpenStack clouds
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile.j2 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. FROM {{ namespace }}/{{ image_prefix }}monasca-base:{{ tag }}
  2. LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
  3. {% block monasca_api_header %}{% endblock %}
  4. {% import "macros.j2" as macros with context %}
  5. {% if install_type == 'binary' %}
  6. RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
  7. && /bin/false
  8. {% elif install_type == 'source' %}
  9. {% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
  10. {% set monasca_api_packages = [
  11. 'mariadb',
  12. ] %}
  13. {% elif base_distro in ['debian', 'ubuntu'] %}
  14. {% set monasca_api_packages = [
  15. 'mariadb-client',
  16. ] %}
  17. {% endif %}
  18. {{ macros.install_packages(monasca_api_packages | customizable("packages")) }}
  19. ADD monasca-api-archive /monasca-api-source
  20. {% set monasca_api_pip_packages = [
  21. 'influxdb',
  22. '/monasca-api'
  23. ] %}
  24. RUN ln -s monasca-api-source/* monasca-api \
  25. && {{ macros.install_pip(monasca_api_pip_packages | customizable("pip_packages")) }}
  26. {% endif %}
  27. COPY extend_start.sh /usr/local/bin/kolla_monasca_extend_start
  28. RUN chmod 755 /usr/local/bin/kolla_monasca_extend_start
  29. {% block monasca_api_footer %}{% endblock %}
  30. {% block footer %}{% endblock %}