summaryrefslogtreecommitdiff
path: root/docker/monasca/monasca-api/Dockerfile.j2
diff options
context:
space:
mode:
Diffstat (limited to 'docker/monasca/monasca-api/Dockerfile.j2')
-rw-r--r--docker/monasca/monasca-api/Dockerfile.j218
1 files changed, 15 insertions, 3 deletions
diff --git a/docker/monasca/monasca-api/Dockerfile.j2 b/docker/monasca/monasca-api/Dockerfile.j2
index a66c548..e9f7b52 100644
--- a/docker/monasca/monasca-api/Dockerfile.j2
+++ b/docker/monasca/monasca-api/Dockerfile.j2
@@ -12,9 +12,21 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
12 12
13{% elif install_type == 'source' %} 13{% elif install_type == 'source' %}
14 14
15 {% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
16 {% set monasca_api_packages = [
17 'mariadb',
18 ] %}
19 {% elif base_distro in ['debian', 'ubuntu'] %}
20 {% set monasca_api_packages = [
21 'mariadb-client',
22 ] %}
23 {% endif %}
24{{ macros.install_packages(monasca_api_packages | customizable("packages")) }}
25
15ADD monasca-api-archive /monasca-api-source 26ADD monasca-api-archive /monasca-api-source
16 27
17{% set monasca_api_pip_packages = [ 28{% set monasca_api_pip_packages = [
29 'influxdb',
18 '/monasca-api' 30 '/monasca-api'
19] %} 31] %}
20 32
@@ -23,9 +35,9 @@ RUN ln -s monasca-api-source/* monasca-api \
23 35
24{% endif %} 36{% endif %}
25 37
38COPY extend_start.sh /usr/local/bin/kolla_monasca_extend_start
39RUN chmod 755 /usr/local/bin/kolla_monasca_extend_start
40
26{% block monasca_api_footer %}{% endblock %} 41{% block monasca_api_footer %}{% endblock %}
27 42
28{% block footer %}{% endblock %} 43{% block footer %}{% endblock %}
29
30USER monasca
31