From 399802fe57ca45da820aa026c90bb9a08a12e861 Mon Sep 17 00:00:00 2001 From: gkiar Date: Thu, 22 Jun 2017 13:07:30 -0700 Subject: [PATCH 1/4] updated stub for dockerfile - still not thoroughly tested or documented --- imports/docker/Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/imports/docker/Dockerfile b/imports/docker/Dockerfile index e69de29..e890132 100644 --- a/imports/docker/Dockerfile +++ b/imports/docker/Dockerfile @@ -0,0 +1,14 @@ +FROM danieldent/meteor:1.0.3.1-onbuild +MAINTAINER Anisha Keshavan + +USER root +RUN apt-get update +RUN apt-get install -y git + +ENV MC_DIR /home/mindcontrol +RUN mkdir -p ${MC_DIR} &&\ + cd ${MC_DIR} &&\ + git clone https://github.com/clowd-control/mindcontrol.git ${MC_DIR} + +WORKDIR ${MC_DIR} +ENTRYPOINT ["meteor"] From d63e382436e3265a5fbe09f2a8e358a97a88fd08 Mon Sep 17 00:00:00 2001 From: gkiar Date: Thu, 22 Jun 2017 14:15:52 -0700 Subject: [PATCH 2/4] updated docker and readme --- imports/docker/Dockerfile | 5 ++++- imports/docker/README.md | 16 ++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 imports/docker/README.md diff --git a/imports/docker/Dockerfile b/imports/docker/Dockerfile index e890132..01850a6 100644 --- a/imports/docker/Dockerfile +++ b/imports/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM danieldent/meteor:1.0.3.1-onbuild +FROM danieldent/meteor:latest MAINTAINER Anisha Keshavan USER root @@ -6,9 +6,12 @@ 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/clowd-control/mindcontrol.git ${MC_DIR} +EXPOSE 3000 WORKDIR ${MC_DIR} ENTRYPOINT ["meteor"] diff --git a/imports/docker/README.md b/imports/docker/README.md new file mode 100644 index 0000000..77b9867 --- /dev/null +++ b/imports/docker/README.md @@ -0,0 +1,16 @@ +# Instructions for Running our Docker + +## To Build +(from this directory) + +``` +docker build -t clowd-control/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/mincontrol/.meteor/ -p 3000:3000 clowd-control/mindcontrol +``` From 468b299096bba6c1bae652a6324dcce78bd559c7 Mon Sep 17 00:00:00 2001 From: gkiar Date: Thu, 22 Jun 2017 14:19:48 -0700 Subject: [PATCH 3/4] updated org name --- imports/docker/Dockerfile | 2 +- imports/docker/README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/imports/docker/Dockerfile b/imports/docker/Dockerfile index 01850a6..741df0e 100644 --- a/imports/docker/Dockerfile +++ b/imports/docker/Dockerfile @@ -10,7 +10,7 @@ ENV LC_ALL C RUN mkdir -p ${MC_DIR} &&\ cd ${MC_DIR} &&\ - git clone https://github.com/clowd-control/mindcontrol.git ${MC_DIR} + git clone https://github.com/clowdcontrol/mindcontrol.git ${MC_DIR} EXPOSE 3000 WORKDIR ${MC_DIR} diff --git a/imports/docker/README.md b/imports/docker/README.md index 77b9867..7840165 100644 --- a/imports/docker/README.md +++ b/imports/docker/README.md @@ -4,7 +4,7 @@ (from this directory) ``` -docker build -t clowd-control/mindcontrol . +docker build -t clowdcontrol/mindcontrol . ``` ## To Run @@ -12,5 +12,5 @@ docker build -t clowd-control/mindcontrol . Note: the `-v` mount is **very important** as it contains the backup of the MongoDB. ``` -docker run -it --rm -v ${PWD}/.mindcontrol/:/home/mincontrol/.meteor/ -p 3000:3000 clowd-control/mindcontrol +docker run -it --rm -v ${PWD}/.mindcontrol/:/home/mincontrol/.meteor/ -p 3000:3000 clowdcontrol/mindcontrol ``` From ba5d87a977df4e85932a234dd1607553cddd2964 Mon Sep 17 00:00:00 2001 From: gkiar Date: Thu, 22 Jun 2017 14:51:26 -0700 Subject: [PATCH 4/4] fixed typo! --- imports/docker/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imports/docker/README.md b/imports/docker/README.md index 7840165..ddd1d8b 100644 --- a/imports/docker/README.md +++ b/imports/docker/README.md @@ -12,5 +12,5 @@ docker build -t clowdcontrol/mindcontrol . Note: the `-v` mount is **very important** as it contains the backup of the MongoDB. ``` -docker run -it --rm -v ${PWD}/.mindcontrol/:/home/mincontrol/.meteor/ -p 3000:3000 clowdcontrol/mindcontrol +docker run -it --rm -v ${PWD}/.mindcontrol/:/home/mindcontrol/.meteor/ -p 3000:3000 clowdcontrol/mindcontrol ```