kolla-ansible/docker/mongodb/Dockerfile
Pradeep Kilambi 6bd1f5a3a7 Fix to not fork mongod so mongodb container works as expected
For some reason forking the mongod process seems to cause issues
when the container comes up. If i remove this and run the
images with detach and publishall flags i can connect to
mongo instance.

Change-Id: I0b7193e6369084e3aeec857607dda9c3f235770d
2014-11-25 22:23:42 +00:00

14 lines
332 B
Docker

FROM kollaglue/fedora-rdo-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
EXPOSE 27017
ENTRYPOINT exec /bin/mongod --dbpath /data/db --logpath /var/log/mongodb/mongo.log --noprealloc --smallfiles