summaryrefslogtreecommitdiff
path: root/docker/monasca/monasca-base/Dockerfile.j2
diff options
context:
space:
mode:
Diffstat (limited to 'docker/monasca/monasca-base/Dockerfile.j2')
-rw-r--r--docker/monasca/monasca-base/Dockerfile.j231
1 files changed, 30 insertions, 1 deletions
diff --git a/docker/monasca/monasca-base/Dockerfile.j2 b/docker/monasca/monasca-base/Dockerfile.j2
index 1306b57..bdf5e14 100644
--- a/docker/monasca/monasca-base/Dockerfile.j2
+++ b/docker/monasca/monasca-base/Dockerfile.j2
@@ -14,8 +14,37 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
14 14
15{% elif install_type == 'source' %} 15{% elif install_type == 'source' %}
16 16
17RUN mkdir -p /etc/monasca \ 17 {% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
18 {% set monasca_base_packages = [
19 'httpd',
20 'mod_ssl',
21 'mod_wsgi'
22 ] %}
23
24{{ macros.install_packages(monasca_base_packages | customizable("packages")) }}
25RUN sed -i -r 's,^(Listen 80),#\1,' /etc/httpd/conf/httpd.conf \
26 && sed -i -r 's,^(Listen 443),#\1,' /etc/httpd/conf.d/ssl.conf
27 {% elif base_distro in ['debian', 'ubuntu'] %}
28
29 {% set monasca_base_packages = [
30 'apache2',
31 'libapache2-mod-wsgi',
32 ] %}
33
34{{ macros.install_packages(monasca_base_packages | customizable("packages")) }}
35RUN truncate -s 0 /etc/apache2/ports.conf
36
37 {% endif %}
38
39{% block monasca_source_install %}
40
41{% set monasca_base_pip_packages = [
42] %}
43
44RUN {{ macros.install_pip(monasca_base_pip_packages | customizable("pip_packages")) }} \
45 && mkdir -p /etc/monasca \
18 && chown -R monasca: /etc/monasca 46 && chown -R monasca: /etc/monasca
47{% endblock %}
19 48
20{% endif %} 49{% endif %}
21 50