File tree 3 files changed +46
-0
lines changed
3 files changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM 10.64.27.125:5000/vpavlin/rhel7
2
+ # FROM 10.64.27.125:5000/rhel:7-0.0.1.beta.el7
3
+ MAINTAINER scollier <
[email protected] >
4
+
5
+ # Update the container and clean cache
6
+ RUN yum -y update; yum clean all
7
+
8
+ # Add repo files
9
+ ADD ./mongo.repo /etc/yum.repos.d/
10
+
11
+ # Install MongoDB packages and extras
12
+ RUN yum -y install mongo-10gen-server mongo-10gen; yum clean all
13
+ RUN yum -y install procps-ng iptables; yum clean all
14
+
15
+ RUN mkdir -p /var/lib/mongo && \
16
+ chown mongod.mongod /var/lib/mongo && \
17
+ touch /var/lib/mongo/.keep
18
+
19
+ ADD ./mongod.conf /etc/
20
+
21
+ VOLUME ["/var/lib/mongo" , "/var/log/mongo" ]
22
+
23
+ # Expose ports
24
+ EXPOSE 27017 28017
25
+
26
+ USER mongod
27
+
28
+ CMD ["/usr/bin/mongod" , "-f" , "/etc/mongod.conf" ]
Original file line number Diff line number Diff line change
1
+ [mongodb]
2
+ name=MongoDB Repository
3
+ baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
4
+ gpgcheck=0
5
+ enabled=1
Original file line number Diff line number Diff line change
1
+ ##
2
+ ### Basic Defaults
3
+ ##
4
+ # bind_ip = 127.0.0.1
5
+ port = 27017
6
+ logpath = /var/log/mongo/mongodb.log
7
+ dbpath = /var/lib/mongo
8
+ journal = true
9
+ logappend = true
10
+ auth = false
11
+ rest = true
12
+ smallfiles = true
13
+ nohttpinterface = true
You can’t perform that action at this time.
0 commit comments