FROM startx/fedora MAINTAINER Christophe LARUE RUN yum -y install \ mongodb \ mongodb-server \ libmongo-client \ rsyslog-mongodb \ mongodb-mms-backup-agent \ mongodb-mms-monitoring-agent \ && yum clean all \ && mkdir -p /var/lib/mongodb \ && touch /var/lib/mongodb/.keep COPY sx/* /sx/ COPY mongodb.conf /etc/mongodb.conf RUN chmod ug+rx /sx/mongod* \ && chown -R mongodb:mongodb /sx/mongod* /var/lib/mongodb /var/log/mongodb EXPOSE 27017 VOLUME ["/var/lib/mongodb", "/var/log/mongodb"] USER mongodb #ENDPOINT ["/sx/mongod_run.sh"] CMD ["/sx/mongod_run.sh"]