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 2017/07/14 22:40:14 UTC

incubator-mnemonic-site git commit: MNEMONIC-303: Add a document page for development setup

Repository: incubator-mnemonic-site
Updated Branches:
  refs/heads/master 181966e09 -> ed75ffa8e


MNEMONIC-303: Add a document page for development setup


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

Branch: refs/heads/master
Commit: ed75ffa8ea887fc5ffeeaef0f18fafe5d49e5655
Parents: 181966e
Author: Wang, Gang(Gary) <ga...@intel.com>
Authored: Fri Jul 14 15:38:54 2017 -0700
Committer: Wang, Gang(Gary) <ga...@intel.com>
Committed: Fri Jul 14 15:38:54 2017 -0700

----------------------------------------------------------------------
 src/_data/docs.yml    |  1 +
 src/_docs/devsetup.md | 41 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 42 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mnemonic-site/blob/ed75ffa8/src/_data/docs.yml
----------------------------------------------------------------------
diff --git a/src/_data/docs.yml b/src/_data/docs.yml
index f33b2a2..f7d77e9 100644
--- a/src/_data/docs.yml
+++ b/src/_data/docs.yml
@@ -10,6 +10,7 @@
 
 - title: Usage
   docs:
+  - devsetup
   - build
   - usage
   - runtest

http://git-wip-us.apache.org/repos/asf/incubator-mnemonic-site/blob/ed75ffa8/src/_docs/devsetup.md
----------------------------------------------------------------------
diff --git a/src/_docs/devsetup.md b/src/_docs/devsetup.md
new file mode 100644
index 0000000..d339ea0
--- /dev/null
+++ b/src/_docs/devsetup.md
@@ -0,0 +1,41 @@
+---
+layout: docs
+title: Development Setup
+permalink: /docs/devsetup.html
+---
+
+This document provides a best practice for general development setup, 
+we suggest to use this practice on your first try for code contribution.
+
+It is based on Docker and simple for preparation, no root privilege needed except for Docker and Git installation. 
+
+* Install Git on your system [Git-scm](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git){:target="_blank"}
+* [First-Time Git Setup](https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup){:target="_blank"}
+```bash
+  $ git config --global user.name "<Your Name>"
+  $ git config --global user.email "<Your Email Address>"
+```
+* Install Docker on your system [Docker Official Website](https://www.docker.com/){:target="_blank"}
+* Install IDE on your Linux/MacOS/Windows box [IntelliJ IDEA Official Website](https://www.jetbrains.com/idea/){:target="_blank"}
+* Register an account on Github for yourself if not yet have one
+* Log into Github and fork [Apache Incubator Mnemonic repository](https://github.com/apache/incubator-mnemonic){:target="_blank"}.
+  [Fork and Set up Git](https://help.github.com/articles/fork-a-repo/){:target="_blank"}
+* Configure Apache incubator Mnemonic repo. as upstream remote in your local repository
+```bash
+  $ cd <your_project_folder>
+  $ git remote add upstream https://github.com/apache/incubator-mnemonic.git
+```
+* Prepare Mnemonic Docker image on you system
+```bash
+  $ docker build -t mnedev https://github.com/apache/incubator-mnemonic.git#:docker/docker-CentOS
+  $ # --------- OR --------- 
+  $ docker build -t mnedev https://github.com/apache/incubator-mnemonic.git#:docker/docker-Ubuntu
+```
+* Mount your host repo. to Docker container, this following command would hide the original Mnemonic project folder in container 
+```bash
+  $ docker run -it -v <mnemonic_project_folder>:/ws/incubator-mnemonic mnedev
+```
+* Open Mnemonic project in the IDE 
+
+After setup, you are able to edit project code on your host while compiling and test your code in isolated Docker environment.
+Please leave enough space for docker based compiling and testing (>30G for test running)