6bd1f5a3a7
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
14 lines
332 B
Docker
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
|