blob: 0199e76b18502a26456f3430e1d5755e8464b7f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
FROM startx/fedora
MAINTAINER Christophe LARUE <dev@startx.fr>
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"]
|