-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from clowdcontrol/gk-docker-dev
Dockerfile
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM danieldent/meteor:latest | ||
MAINTAINER Anisha Keshavan <[email protected]> | ||
|
||
USER root | ||
RUN apt-get update | ||
RUN apt-get install -y git | ||
|
||
ENV MC_DIR /home/mindcontrol | ||
ENV LC_ALL C | ||
|
||
RUN mkdir -p ${MC_DIR} &&\ | ||
cd ${MC_DIR} &&\ | ||
git clone https://github.com/clowdcontrol/mindcontrol.git ${MC_DIR} | ||
|
||
EXPOSE 3000 | ||
WORKDIR ${MC_DIR} | ||
ENTRYPOINT ["meteor"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Instructions for Running our Docker | ||
|
||
## To Build | ||
(from this directory) | ||
|
||
``` | ||
docker build -t clowdcontrol/mindcontrol . | ||
``` | ||
|
||
## To Run | ||
(from anywhere, after building/pulling) | ||
|
||
Note: the `-v` mount is **very important** as it contains the backup of the MongoDB. | ||
``` | ||
docker run -it --rm -v ${PWD}/.mindcontrol/:/home/mindcontrol/.meteor/ -p 3000:3000 clowdcontrol/mindcontrol | ||
``` |