Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qg-dockerfiles
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qg-dockerfiles
Commits
cb9d814f
Commit
cb9d814f
authored
Apr 18, 2018
by
wentao.suo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add mongodb dockerfile
parent
fe5c0b2b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
0 deletions
+28
-0
Dockerfile
baseimg/common/mongodb/Dockerfile
+19
-0
mongo.conf
baseimg/common/mongodb/mongo.conf
+8
-0
readme
baseimg/common/mongodb/readme
+1
-0
No files found.
baseimg/common/mongodb/Dockerfile
0 → 100644
View file @
cb9d814f
FROM
192.168.4.4/baseimg/centos:201803291115
MAINTAINER
kalvin "dekun.dai@quantgroup.cn"
# wget http://downloads.mongodb.org/linux/mongodb-linux-x86_64-3.7.5.tgz?_ga=2.143033397.1680334990.1524016050-1626449200.1524016050
ADD
mongodb-linux-x86_64-3.7.5.tgz /usr/local/
RUN
mv
/usr/local/mongodb-linux-x86_64-3.7.5 /usr/local/mongodb
&&
cd
/usr/local/mongodb
&&
mkdir
data logs
COPY
mongo.conf /usr/local/mongodb/mongo.conf
WORKDIR
/usr/local/mongodb/
EXPOSE
27017
# CMD mongod --config mongo.conf && tail -f logs/mongodb.log
CMD
mongod --config mongo.conf
\ No newline at end of file
baseimg/common/mongodb/mongo.conf
0 → 100644
View file @
cb9d814f
dbpath
= /
usr
/
local
/
mongodb
/
data
/
logpath
= /
usr
/
local
/
mongodb
/
logs
/
mongodb
.
log
port
=
27017
fork
=
true
logappend
=
true
quiet
=
true
journal
=
true
auth
=
true
\ No newline at end of file
baseimg/common/mongodb/readme
0 → 100644
View file @
cb9d814f
docker run -d --name zx-mongo -p 27017:27017 -v `pwd`/data:/usr/local/mongodb/data -v `pwd`/logs:/usr/local/mongodb/logs mongo:3.4.9
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment