diff options
| author | Jenkins <jenkins@review.openstack.org> | 2017-03-27 07:54:09 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2017-03-27 07:54:09 +0000 |
| commit | 464ca08bfee416e5ccc05e3827aecc9ff9f4956d (patch) | |
| tree | ad42538d1d8318928f08a881de9aee5e4d082ea0 /docker/nova/nova-api/Dockerfile.j2 | |
| parent | 13ec42e2a93be480a0aba75fbd8b12d3e9ed027a (diff) | |
| parent | f88ca0f862da4b040b9e0aaac7ac1b952bd0c08b (diff) | |
| download | kolla-464ca08bfee416e5ccc05e3827aecc9ff9f4956d.tar.gz kolla-464ca08bfee416e5ccc05e3827aecc9ff9f4956d.zip | |
Merge "Prevent apache from listening on port 80"
Diffstat (limited to 'docker/nova/nova-api/Dockerfile.j2')
| -rw-r--r-- | docker/nova/nova-api/Dockerfile.j2 | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/docker/nova/nova-api/Dockerfile.j2 b/docker/nova/nova-api/Dockerfile.j2 index 0e9eeb124..287b3a2d0 100644 --- a/docker/nova/nova-api/Dockerfile.j2 +++ b/docker/nova/nova-api/Dockerfile.j2 @@ -13,6 +13,8 @@ MAINTAINER {{ maintainer }} 'httpd', 'mod_wsgi' ] %} +{{ macros.install_packages(nova_api_packages | customizable("packages")) }} +RUN sed -i -r 's,^(Listen 80),#\1,' /etc/httpd/conf/httpd.conf {% elif base_distro in ['ubuntu'] %} @@ -23,8 +25,9 @@ MAINTAINER {{ maintainer }} 'libapache2-mod-wsgi' ] %} - {% endif %} {{ macros.install_packages(nova_api_packages | customizable("packages")) }} +RUN echo > /etc/apache2/ports.conf + {% endif %} {% elif install_type == 'source' %} @@ -34,6 +37,8 @@ MAINTAINER {{ maintainer }} 'httpd', 'mod_wsgi' ] %} +{{ macros.install_packages(nova_api_packages | customizable("packages")) }} +RUN sed -i -r 's,^(Listen 80),#\1,' /etc/httpd/conf/httpd.conf {% elif base_distro in ['ubuntu'] %} @@ -42,9 +47,10 @@ MAINTAINER {{ maintainer }} 'libapache2-mod-wsgi' ] %} - {% endif %} - {{ macros.install_packages(nova_api_packages | customizable("packages")) }} +RUN echo > /etc/apache2/ports.conf + + {% endif %} {% endif %} |
