aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Dake <stdake@cisco.com>2015-03-28 08:11:34 -0700
committerSteven Dake <stdake@cisco.com>2015-04-06 20:25:18 -0700
commita87980e5c21b17a60ba46cb53208140143ed8b15 (patch)
tree04630da402ad9349b11d0d50272cda977019e585
parent53c1ba99c82ee299877c95f97eea3d06b0bb398a (diff)
downloadkolla-a87980e5c21b17a60ba46cb53208140143ed8b15.tar.gz
kolla-a87980e5c21b17a60ba46cb53208140143ed8b15.zip
Remove EXPOSE options from Dockerfiles
The EXPOSE options will create a local docker-proxy. This is unnecessary with --net=host mode. The docker-proxy adds about 20 microseconds of latency. Add documentation to the specification to indicate where to find the ports that are exposed by the services in case someone were to desire to add EXPOSE back to the Dockerfiles. Change-Id: I398e922fe096d6022a2d5985bb92498f89a5ea31
-rw-r--r--docker/barbican/Dockerfile3
-rw-r--r--docker/ceilometer/ceilometer-api/Dockerfile2
-rw-r--r--docker/glance/glance-registry/Dockerfile2
-rw-r--r--docker/horizon/Dockerfile2
-rw-r--r--docker/mongodb/Dockerfile2
-rw-r--r--docker/neutron/neutron-server/Dockerfile2
-rw-r--r--docker/nova-controller/nova-api/Dockerfile2
-rw-r--r--docker/zaqar/Dockerfile2
-rw-r--r--specs/containerize-openstack.rst9
9 files changed, 9 insertions, 17 deletions
diff --git a/docker/barbican/Dockerfile b/docker/barbican/Dockerfile
index f017f3174..fecb78413 100644
--- a/docker/barbican/Dockerfile
+++ b/docker/barbican/Dockerfile
@@ -35,7 +35,4 @@ RUN pip install uwsgi
RUN rm -rf /barbican-$PBR_VERSION
RUN rm -rf /barbican-$PBR_VERSION.tar.gz
-# Expose the dev and admin ports
-EXPOSE 9311 9312
-
CMD ["/start.sh"]
diff --git a/docker/ceilometer/ceilometer-api/Dockerfile b/docker/ceilometer/ceilometer-api/Dockerfile
index a9894e2bd..aaaf7c8df 100644
--- a/docker/ceilometer/ceilometer-api/Dockerfile
+++ b/docker/ceilometer/ceilometer-api/Dockerfile
@@ -3,7 +3,5 @@ MAINTAINER Kolla Project (https://launchpad.net/kolla)
RUN yum install -y openstack-ceilometer-api && yum clean all
-EXPOSE 8777
-
ADD ./start.sh /start.sh
CMD ["/start.sh"]
diff --git a/docker/glance/glance-registry/Dockerfile b/docker/glance/glance-registry/Dockerfile
index 2510f8eb0..e9937dc7f 100644
--- a/docker/glance/glance-registry/Dockerfile
+++ b/docker/glance/glance-registry/Dockerfile
@@ -1,7 +1,5 @@
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%glance-base
MAINTAINER Kolla Project (https://launchpad.net/kolla)
-EXPOSE 9191
-
ADD ./start.sh /start.sh
CMD ["/start.sh"]
diff --git a/docker/horizon/Dockerfile b/docker/horizon/Dockerfile
index eafff2faa..f153ef996 100644
--- a/docker/horizon/Dockerfile
+++ b/docker/horizon/Dockerfile
@@ -4,8 +4,6 @@ MAINTAINER Kolla Project (https://launchpad.net/kolla)
RUN yum -y install openstack-dashboard \
httpd httpd-mod-wsgi && yum clean all
-EXPOSE 80
-
ADD ./start.sh /start.sh
CMD ["/start.sh"]
diff --git a/docker/mongodb/Dockerfile b/docker/mongodb/Dockerfile
index 353df42b2..81278092f 100644
--- a/docker/mongodb/Dockerfile
+++ b/docker/mongodb/Dockerfile
@@ -8,6 +8,4 @@ RUN mkdir -p /data/db
VOLUME /data/db
VOLUME /var/log/mongodb
-EXPOSE 27017
-
ENTRYPOINT exec /bin/mongod --dbpath /data/db --logpath /var/log/mongodb/mongo.log --noprealloc --smallfiles
diff --git a/docker/neutron/neutron-server/Dockerfile b/docker/neutron/neutron-server/Dockerfile
index 9597f7c40..a9d4eef4d 100644
--- a/docker/neutron/neutron-server/Dockerfile
+++ b/docker/neutron/neutron-server/Dockerfile
@@ -9,8 +9,6 @@ RUN yum install -y openstack-neutron \
VOLUME /var/lib/neutron
-EXPOSE 9696
-
ADD ./start.sh /start.sh
ADD ./check.sh /check.sh
diff --git a/docker/nova-controller/nova-api/Dockerfile b/docker/nova-controller/nova-api/Dockerfile
index 2ac871dad..12a2add20 100644
--- a/docker/nova-controller/nova-api/Dockerfile
+++ b/docker/nova-controller/nova-api/Dockerfile
@@ -4,8 +4,6 @@ MAINTAINER Kolla Project (https://launchpad.net/kolla)
RUN yum -y install \
openstack-nova-api && yum clean all
-EXPOSE 8773 8774 8775
-
ADD ./start.sh /start.sh
ADD ./check.sh /check.sh
diff --git a/docker/zaqar/Dockerfile b/docker/zaqar/Dockerfile
index e993887c4..d4db63dc3 100644
--- a/docker/zaqar/Dockerfile
+++ b/docker/zaqar/Dockerfile
@@ -9,8 +9,6 @@ RUN yum -y localinstall python-oslo-utils-0.3.0-1.fc22.noarch.rpm \
openstack-zaqar-2014.2-1.fc22.noarch.rpm \
&& yum clean all
-EXPOSE 8888
-
ADD ./start.sh /start.sh
ADD ./check.sh /check.sh
diff --git a/specs/containerize-openstack.rst b/specs/containerize-openstack.rst
index 3aeb67be1..f035ec2e0 100644
--- a/specs/containerize-openstack.rst
+++ b/specs/containerize-openstack.rst
@@ -188,6 +188,15 @@ with the --privileged=true flag to docker that:
leaf directories with no other host operating system use.
* shares any namespace with the --ipc=host, --pid=host, or --net=host flags
+We will not use the Docker EXPOSE operation since all containers will use
+--net=host. One motive for using --net=host is it is inherently simplier.
+A different motive for not using EXPOSE is the 20 microsecond penalty
+applied to every packet forwarded and returned by docker-proxy.
+If EXPOSE functionality is desired, it can be added back by
+referencing the default list of OpenStack ports to each Dockerfile:
+
+ http://docs.openstack.org/trunk/config-reference/content/firewalls-default-ports.html
+
We will use the docker flag --restart=always to provide some measure of
high availability for the individual containers and ensure they operate
correctly as currently designed.