
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
12 lines
335 B
Docker
12 lines
335 B
Docker
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base
|
|
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
|
|
|
RUN yum -y install mongodb mongodb-server && yum clean all
|
|
|
|
RUN mkdir -p /data/db
|
|
|
|
VOLUME /data/db
|
|
VOLUME /var/log/mongodb
|
|
|
|
ENTRYPOINT exec /bin/mongod --dbpath /data/db --logpath /var/log/mongodb/mongo.log --noprealloc --smallfiles
|