fix readme and comments

This commit is contained in:
Adam Brown 2015-01-26 21:52:07 -05:00
parent 276d034468
commit b554387817
2 changed files with 9 additions and 10 deletions

View File

@ -55,10 +55,12 @@ ENV MONGO_LOG $HOME/.mongodb.log
RUN mkdir $MONGO_DB
# launch mongo
# this could be done as an entrypoint or whatever
# RUN mongod --dbpath $MONGO_DB --logpath $MONGO_LOG --fork --journal
# this just preps the database - it still needs to be launched inside the docker container
RUN mongod --dbpath $MONGO_DB --logpath $MONGO_LOG --fork --journal
# create a script for launching mongo
# create a script for launching mongo from the docker container
# this could go in .bashrc or something
# perhaps mongo should use the /data volume for its database?
RUN mkdir $HOME/bin
RUN echo 'mongod --dbpath $MONGO_DB --logpath $MONGO_LOG --fork --journal' > $HOME/bin/mongod-start
RUN chmod +x $HOME/bin/mongod-start

View File

@ -4,13 +4,10 @@ A docker container for developing mean stack applications
Useage
######
Build the container with
sudo docker build -t 'tag name' .
Build the container with `sudo docker build -t 'tag name' .`
and run with
sudo ./docker-run
and run with `sudo ./docker-run`
The run script will attempt to mount a data volume from the host os from ~/docker/data.
The run script will attempt to mount a data volume from the host os from `~/docker/data`.
Finally, from the docker container, launch mongod with
mongod-start
Finally, from the docker container, launch mongod with `mongod-start`