Skip to content

Commit 970df96

Browse files
committed
adding mongo-cluster dockerfile and supporting scripts
1 parent 0d6772c commit 970df96

File tree

4 files changed

+44
-0
lines changed

4 files changed

+44
-0
lines changed

mongo-cluster/Dockerfile

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM 10.64.27.125:5000/rhel:7-0.0.1.beta.el7
2+
# FROM 10.64.27.125:5000/vpavlin/rhel7
3+
MAINTAINER scollier <[email protected]>
4+
5+
# Update the system
6+
RUN yum -y update; yum clean all
7+
8+
# Add repo files
9+
ADD ./mongo.repo /etc/yum.repos.d/
10+
# ADD ./mongodb.conf /etc/
11+
ADD ./mongod.conf /etc/
12+
13+
# Install MongoDB and extras
14+
RUN yum -y install mongo-10gen-server mongo-10gen; yum clean all
15+
RUN yum -y install procps-ng iptables; yum clean all
16+
17+
# Expose ports
18+
EXPOSE 27017 28017
19+
20+
# USER mongod
21+
22+
CMD ["/usr/bin/mongod", "-f", "/etc/mongod.conf"]

mongo-cluster/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
dockerfiles-fedora-firefox
2+
==========================
3+
4+
MongoDB cluster Dockerfile

mongo-cluster/mongo.repo

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[mongodb]
2+
name=MongoDB Repository
3+
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
4+
gpgcheck=0
5+
enabled=1

mongo-cluster/mongod.conf

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
##
2+
### Basic Defaults
3+
##
4+
# bind_ip = 127.0.0.1
5+
port = 27017
6+
logpath = /mongo/logs/mongodb.log
7+
dbpath =/var/lib/mongodb
8+
journal = true
9+
auth = false
10+
rest = true
11+
smallfiles = true
12+
replSet = replSet
13+
nohttpinterface = true

0 commit comments

Comments
 (0)