You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mnemonic.apache.org by ga...@apache.org on 2016/08/26 16:30:40 UTC

[1/6] incubator-mnemonic git commit: MNEMONIC-99:Set no proxy as default with comments in Dockerfile

Repository: incubator-mnemonic
Updated Branches:
  refs/heads/master 29e36cd7c -> d8b58c3b7


MNEMONIC-99:Set no proxy as default with comments in Dockerfile


Project: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/commit/3e15251a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/tree/3e15251a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/diff/3e15251a

Branch: refs/heads/master
Commit: 3e15251a651c721b220510c9588c2f7bfc056cc8
Parents: 29e36cd
Author: wentong <pu...@gmail.com>
Authored: Thu Aug 25 21:23:23 2016 -0700
Committer: wentong <pu...@gmail.com>
Committed: Thu Aug 25 21:23:23 2016 -0700

----------------------------------------------------------------------
 docker/Dockerfile | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/blob/3e15251a/docker/Dockerfile
----------------------------------------------------------------------
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 8c02bf2..fdfbf41 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -18,13 +18,14 @@
 FROM centos
 MAINTAINER Gang Wang (garyw@apache.org)
 
-ENV proxy_host "172.17.42.1"
-ENV proxy_port "8668"
-ENV http_proxy "http://${proxy_host}:${proxy_port}"
-ENV https_proxy ${http_proxy}
-ENV HTTP_PROXY ${http_proxy}
-ENV HTTPS_PROXY ${http_proxy}
-ENV proxy ${http_proxy}
+#set up your proxy below, refer to readme in the Docker folder
+ENV proxy_host ""
+ENV proxy_port ""
+#ENV http_proxy "http://${proxy_host}:${proxy_port}"
+#ENV https_proxy ${http_proxy}
+#ENV HTTP_PROXY ${http_proxy}
+#ENV HTTPS_PROXY ${http_proxy}
+#ENV proxy ${http_proxy}
 
 RUN echo $proxy
 


[4/6] incubator-mnemonic git commit: Merge pull request #4 from weiho1122/master

Posted by ga...@apache.org.
Merge pull request #4 from weiho1122/master

MNEMONIC-100: Use checkstyle to ensure Unix-style end of line

Project: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/commit/9bc3707a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/tree/9bc3707a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/diff/9bc3707a

Branch: refs/heads/master
Commit: 9bc3707ac2b022e9178b03178d6086e05f4f75d0
Parents: b0eb1b1 aea4407
Author: Wang, Gang <qi...@gmail.com>
Authored: Thu Aug 25 22:03:18 2016 -0700
Committer: GitHub <no...@github.com>
Committed: Thu Aug 25 22:03:18 2016 -0700

----------------------------------------------------------------------
 build-tools/mnemonic-checkstyle.xml | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------



[2/6] incubator-mnemonic git commit: MNEMONIC-100: Use checkstyle to ensure Unix-style end of line

Posted by ga...@apache.org.
MNEMONIC-100: Use checkstyle to ensure Unix-style end of line


Project: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/commit/aea44075
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/tree/aea44075
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/diff/aea44075

Branch: refs/heads/master
Commit: aea4407564702e87b2ae914b0be41dbbf7ce8ac1
Parents: 29e36cd
Author: Wei He <he...@gmail.com>
Authored: Fri Aug 26 04:31:58 2016 +0000
Committer: Wei He <he...@gmail.com>
Committed: Fri Aug 26 04:31:58 2016 +0000

----------------------------------------------------------------------
 build-tools/mnemonic-checkstyle.xml | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/blob/aea44075/build-tools/mnemonic-checkstyle.xml
----------------------------------------------------------------------
diff --git a/build-tools/mnemonic-checkstyle.xml b/build-tools/mnemonic-checkstyle.xml
index e6b40ab..969f302 100644
--- a/build-tools/mnemonic-checkstyle.xml
+++ b/build-tools/mnemonic-checkstyle.xml
@@ -31,6 +31,14 @@
 
     <module name="FileLength"/>
 
+    <!-- All source files should end with a unix-style end of line. -->
+    <module name="NewlineAtEndOfFile">
+        <!--
+             Use unix style newlines. When set, the checker ensures the last byte in the file is \n.
+        -->
+        <property name="lineSeparator" value="lf"/>
+    </module>
+
     <!-- Following interprets the header file as regular expressions. -->
     <!-- <module name="RegexpHeader"/>                                -->
 


[6/6] incubator-mnemonic git commit: Merge pull request #6 from xiaominsonggit/master

Posted by ga...@apache.org.
Merge pull request #6 from xiaominsonggit/master

MNEMONIC-93: Add Readme.md about Dockerfile build and Usage

Project: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/commit/d8b58c3b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/tree/d8b58c3b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/diff/d8b58c3b

Branch: refs/heads/master
Commit: d8b58c3b7232c84769274a489be4fbb7c712ed72
Parents: 9bc3707 af6f7f5
Author: Wang, Gang <qi...@gmail.com>
Authored: Fri Aug 26 09:18:23 2016 -0700
Committer: GitHub <no...@github.com>
Committed: Fri Aug 26 09:18:23 2016 -0700

----------------------------------------------------------------------
 docker/README.md | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)
----------------------------------------------------------------------



[5/6] incubator-mnemonic git commit: MNEMONIC-93: Add Readme.md about Dockerfile build and Usage

Posted by ga...@apache.org.
MNEMONIC-93: Add Readme.md about Dockerfile build and Usage


Project: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/commit/af6f7f57
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/tree/af6f7f57
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/diff/af6f7f57

Branch: refs/heads/master
Commit: af6f7f5791733cd2c77c141162babd1c832500af
Parents: 29e36cd
Author: Xiaomin Song <xi...@gmail.com>
Authored: Thu Aug 25 14:58:14 2016 -0700
Committer: Xiaomin Song <xi...@gmail.com>
Committed: Fri Aug 26 00:13:12 2016 -0700

----------------------------------------------------------------------
 docker/README.md | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/blob/af6f7f57/docker/README.md
----------------------------------------------------------------------
diff --git a/docker/README.md b/docker/README.md
new file mode 100644
index 0000000..51ad381
--- /dev/null
+++ b/docker/README.md
@@ -0,0 +1,61 @@
+<img src="http://nonvolatilecomputing.github.io/Mnemonic/images/mnemonic_logo.png" width=200 />
+
+================================ 
+
+This is the "Dockerfile" that will automatically build the environment of this project. 
+
+--------------
+### Features:
+
+*What does this Dockerfile do?* 
+
+- 1. Build from centos.
+- 2. Default is not using porxy. Please see instruction below to set up http/https proxy.
+- 3. Install yum default "Development Tools".
+- 4. Install maven.
+- 5. Set up environment variables of paths.
+- 6. Create /ws folder and install pmalloc.
+- 7. Install nvml in /ws.
+- 8. Set up maven proxy mvn.sh.
+- 9. Clone mnemonic code then build/install.  
+- 10. Go to /ws fold and start bash.  
+
+#### How to set up proxy? 
+
+Input IP address and port as the example below, then uncomment all other ENV lines. 
+```bash
+ENV proxy_host "172.17.42.1"
+ENV proxy_port "8668"
+ENV http_proxy "http://${proxy_host}:${proxy_port}"
+ENV https_proxy ${http_proxy}
+ENV HTTP_PROXY ${http_proxy}
+ENV HTTPS_PROXY ${http_proxy}
+ENV proxy ${http_proxy}
+```
+
+### How to build the docker image from Dockerfile in host OS?
+ 
+In the folder of Dockerfile, run: 
+
+```bash
+  $ docker build -t NAME[:TAG] .
+```
+* More detials please refer to [Docker build reference](https://docs.docker.com/engine/reference/commandline/build/)
+
+#### Optional: After build, push image to dockerhub: 
+
+```bash
+  $ docker login [OPTIONS] [SERVER]  
+  $ docker push [OPTIONS] NAME[:TAG]
+```
+* More detials please refer to [Docker login reference](https://docs.docker.com/engine/reference/commandline/login/)
+ and [Docker push reference](https://docs.docker.com/engine/reference/commandline/push/)
+
+### How to run image after build
+
+Run image:
+```bash
+  $ docker run --name CONTAINER_NAME -it NAME[:TAG]
+```
+ * More detials please refer to [Docker run reference](https://docs.docker.com/engine/reference/run/)
+


[3/6] incubator-mnemonic git commit: Merge pull request #3 from wentong12/master

Posted by ga...@apache.org.
Merge pull request #3 from wentong12/master

MNEMONIC-99:Set no proxy as default with comments in Dockerfile

Project: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/commit/b0eb1b10
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/tree/b0eb1b10
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/diff/b0eb1b10

Branch: refs/heads/master
Commit: b0eb1b10cb070fa910d5220833e3063fbd6272d9
Parents: 29e36cd 3e15251
Author: Wang, Gang <qi...@gmail.com>
Authored: Thu Aug 25 22:03:01 2016 -0700
Committer: GitHub <no...@github.com>
Committed: Thu Aug 25 22:03:01 2016 -0700

----------------------------------------------------------------------
 docker/Dockerfile | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)
----------------------------------------------------------------------