{"action":"created","comment":{"url":"https://api.github.com/repos/apache/incubator-reef/pulls/comments/44856266","id":44856266,"diff_hunk":"@@ -0,0 +1,86 @@\n+Apache REEF (incubator) Docker Tests\n+====================================\n+\n+[Apache REEF (incubator)](http://reef.incubator.apache.org/) is \n+an approach to simplify and unify the lower layers of big data systems\n+on modern resource managers. This project maintains docker images\n+to simulate the target underlying systems as similar as possible.\n+\n+Docker-based Test Cluster\n+-------------------------\n+\n+| OS           | Java            | Hadoop Version            | Description   | alias     |\n+|--------------|-----------------|---------------------------|---------------|-----------|\n+| Ubuntu 12.04 | Oracle JDK 7u80 | HDP 2.1.15 (Hadoop 2.4.0) | HDInsight 3.1 | hdi3.1    |\n+| Ubuntu 12.04 | Oracle JDK 7u80 | HDP 2.2.7  (Hadoop 2.6.0) | HDInsight 3.2 | hdi3.2    |\n+| Ubuntu 12.04 | Oracle JDK 7u80 | HDP 2.2.8  (Hadoop 2.6.0) |               | hdp2.2    |\n+| Ubuntu 12.04 | Oracle JDK 7u80 | HDP 2.3.2  (Hadoop 2.7.1) |               | hdp2.3    |\n+| Ubuntu 12.04 | Oracle JDK 7u80 | Apache Hadoop 2.7.1       |               | apache2.7 |\n+| Ubuntu 12.04 | Oracle JDK 7u80 | Apache Mesos 0.24.1       |               | mesos0.24 |\n+| Ubuntu 12.04 | Oracle JDK 7u80 | Apache Mesos 0.25.0       |               | mesos0.25 |\n+\n+Requirements\n+------------\n+\n+First, download and *build* Apache REEF. You can find a guide for this\n+[here](https://cwiki.apache.org/confluence/display/REEF/Compiling+REEF).\n+Second, set $REEF_HOME to the directory of Apache REEF for the script to know its location.\n+Tests will use `$REEF_HOME/lang/java/reef-tests/target/reef-tests-*-test-jar-with-dependencies.jar`.\n+\n+Build docker images (Optional)\n+------------------------------\n+\n+This step is optional. We provide pre-built docker images in DockerHub.\n+Please go to next step if you do not want to build images.\n+To build all images manually, run `build.sh`.\n+\n+```sh\n+$ ./build.sh\n+```\n+\n+Run a docker-based cluster\n+--------------------------\n+\n+Run `run-cluster.sh reefrt/{alias}`. It will create a small cluster\n+with 4 nodes and run a shell on the master node.\n+For all cluster, Apache Hadoop (HDFS/YARN) is installed. The hostnames\n+are `hnn-001-01` (master) and `hnn-001-01 ~ hnn-001-03` (slaves).\n+\n+```sh\n+$ ./run-cluster.sh reefrt/hdi3.2\n+$ root@hnn-001-01:~#\n+```\n+\n+Test Apache REEF on docker cluster\n+----------------------------------\n+\n+After running a cluster, run `runyarntests.sh` for YARN-based images.\n+(HDInsight, HDP, Apache YARN)\n+\n+```sh\n+$ root@hnn-001-01:~# cd /reef\n+$ root@hnn-001-01:~# ./bin/runyarntests.sh\n+...\n+OK (# tests)\n+$ root@hnn-001-01:~# exit\n+```\n+\n+For Mesos, run `runmesostests.sh` in a docker cluster.","path":"dev/docker/README.md","position":68,"original_position":68,"commit_id":"bdd692a8226255a6c3a79d94156f6922ad5513ef","original_commit_id":"bdd692a8226255a6c3a79d94156f6922ad5513ef","user":{"login":"johnyangk","id":4114572,"avatar_url":"https://avatars.githubusercontent.com/u/4114572?v=3","gravatar_id":"","url":"https://api.github.com/users/johnyangk","html_url":"https://github.com/johnyangk","followers_url":"https://api.github.com/users/johnyangk/followers","following_url":"https://api.github.com/users/johnyangk/following{/other_user}","gists_url":"https://api.github.com/users/johnyangk/gists{/gist_id}","starred_url":"https://api.github.com/users/johnyangk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnyangk/subscriptions","organizations_url":"https://api.github.com/users/johnyangk/orgs","repos_url":"https://api.github.com/users/johnyangk/repos","events_url":"https://api.github.com/users/johnyangk/events{/privacy}","received_events_url":"https://api.github.com/users/johnyangk/received_events","type":"User","site_admin":false},"body":"Could you be more specific about the image-environment mapping?\r\nFor example, `Case2: Testing Environment=Mesos images`","created_at":"2015-11-14T07:49:27Z","updated_at":"2015-11-14T07:49:27Z","html_url":"https://github.com/apache/incubator-reef/pull/625#discussion_r44856266","pull_request_url":"https://api.github.com/repos/apache/incubator-reef/pulls/625","_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-reef/pulls/comments/44856266"},"html":{"href":"https://github.com/apache/incubator-reef/pull/625#discussion_r44856266"},"pull_request":{"href":"https://api.github.com/repos/apache/incubator-reef/pulls/625"}}},"pull_request":{"url":"https://api.github.com/repos/apache/incubator-reef/pulls/625","id":50276407,"html_url":"https://github.com/apache/incubator-reef/pull/625","diff_url":"https://github.com/apache/incubator-reef/pull/625.diff","patch_url":"https://github.com/apache/incubator-reef/pull/625.patch","issue_url":"https://api.github.com/repos/apache/incubator-reef/issues/625","number":625,"state":"open","locked":false,"title":"[REEF-926] Add docker-based test environments","user":{"login":"dongjoon-hyun","id":9700541,"avatar_url":"https://avatars.githubusercontent.com/u/9700541?v=3","gravatar_id":"","url":"https://api.github.com/users/dongjoon-hyun","html_url":"https://github.com/dongjoon-hyun","followers_url":"https://api.github.com/users/dongjoon-hyun/followers","following_url":"https://api.github.com/users/dongjoon-hyun/following{/other_user}","gists_url":"https://api.github.com/users/dongjoon-hyun/gists{/gist_id}","starred_url":"https://api.github.com/users/dongjoon-hyun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dongjoon-hyun/subscriptions","organizations_url":"https://api.github.com/users/dongjoon-hyun/orgs","repos_url":"https://api.github.com/users/dongjoon-hyun/repos","events_url":"https://api.github.com/users/dongjoon-hyun/events{/privacy}","received_events_url":"https://api.github.com/users/dongjoon-hyun/received_events","type":"User","site_admin":false},"body":"This PR provides docker-related scripts in order to run `runyarntests.sh`\r\nand `runmesostests.sh` in a development environment. Developers can verify\r\ntheir newly developed codes in their own PCs.\r\nThe followings are the target test environments.\r\n  * Apache Hadoop 2.7.1\r\n  * HDInsight 3.1 and 3.2\r\n  * HDP 2.2 and 2.3\r\n  * Mesos 0.24 and 0.25\r\n\r\nJIRA:\r\n  [REEF-926](https://issues.apache.org/jira/browse/REEF-926)\r\n\r\nPull request:\r\n  This closes #","created_at":"2015-11-10T16:32:05Z","updated_at":"2015-11-14T07:49:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0d3f6276f4e7ebca26bd876deddb32bc2e8f46de","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/incubator-reef/pulls/625/commits","review_comments_url":"https://api.github.com/repos/apache/incubator-reef/pulls/625/comments","review_comment_url":"https://api.github.com/repos/apache/incubator-reef/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/incubator-reef/issues/625/comments","statuses_url":"https://api.github.com/repos/apache/incubator-reef/statuses/bdd692a8226255a6c3a79d94156f6922ad5513ef","head":{"label":"dongjoon-hyun:REEF-926","ref":"REEF-926","sha":"bdd692a8226255a6c3a79d94156f6922ad5513ef","user":{"login":"dongjoon-hyun","id":9700541,"avatar_url":"https://avatars.githubusercontent.com/u/9700541?v=3","gravatar_id":"","url":"https://api.github.com/users/dongjoon-hyun","html_url":"https://github.com/dongjoon-hyun","followers_url":"https://api.github.com/users/dongjoon-hyun/followers","following_url":"https://api.github.com/users/dongjoon-hyun/following{/other_user}","gists_url":"https://api.github.com/users/dongjoon-hyun/gists{/gist_id}","starred_url":"https://api.github.com/users/dongjoon-hyun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dongjoon-hyun/subscriptions","organizations_url":"https://api.github.com/users/dongjoon-hyun/orgs","repos_url":"https://api.github.com/users/dongjoon-hyun/repos","events_url":"https://api.github.com/users/dongjoon-hyun/events{/privacy}","received_events_url":"https://api.github.com/users/dongjoon-hyun/received_events","type":"User","site_admin":false},"repo":{"id":31523353,"name":"incubator-reef","full_name":"dongjoon-hyun/incubator-reef","owner":{"login":"dongjoon-hyun","id":9700541,"avatar_url":"https://avatars.githubusercontent.com/u/9700541?v=3","gravatar_id":"","url":"https://api.github.com/users/dongjoon-hyun","html_url":"https://github.com/dongjoon-hyun","followers_url":"https://api.github.com/users/dongjoon-hyun/followers","following_url":"https://api.github.com/users/dongjoon-hyun/following{/other_user}","gists_url":"https://api.github.com/users/dongjoon-hyun/gists{/gist_id}","starred_url":"https://api.github.com/users/dongjoon-hyun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dongjoon-hyun/subscriptions","organizations_url":"https://api.github.com/users/dongjoon-hyun/orgs","repos_url":"https://api.github.com/users/dongjoon-hyun/repos","events_url":"https://api.github.com/users/dongjoon-hyun/events{/privacy}","received_events_url":"https://api.github.com/users/dongjoon-hyun/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dongjoon-hyun/incubator-reef","description":"Mirror of Apache REEF (Incubating)","fork":true,"url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef","forks_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/forks","keys_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/teams","hooks_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/hooks","issue_events_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/issues/events{/number}","events_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/events","assignees_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/assignees{/user}","branches_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/branches{/branch}","tags_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/tags","blobs_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/git/refs{/sha}","trees_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/statuses/{sha}","languages_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/languages","stargazers_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/stargazers","contributors_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/contributors","subscribers_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/subscribers","subscription_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/subscription","commits_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/commits{/sha}","git_commits_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/git/commits{/sha}","comments_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/comments{/number}","issue_comment_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/issues/comments{/number}","contents_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/contents/{+path}","compare_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/merges","archive_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/downloads","issues_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/issues{/number}","pulls_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/pulls{/number}","milestones_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/milestones{/number}","notifications_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/labels{/name}","releases_url":"https://api.github.com/repos/dongjoon-hyun/incubator-reef/releases{/id}","created_at":"2015-03-02T04:26:55Z","updated_at":"2015-05-08T16:03:16Z","pushed_at":"2015-11-13T21:12:06Z","git_url":"git://github.com/dongjoon-hyun/incubator-reef.git","ssh_url":"git@github.com:dongjoon-hyun/incubator-reef.git","clone_url":"https://github.com/dongjoon-hyun/incubator-reef.git","svn_url":"https://github.com/dongjoon-hyun/incubator-reef","homepage":null,"size":32590,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"835bf945c167d5db4439a19baaa469ac90b6a9d0","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":25623941,"name":"incubator-reef","full_name":"apache/incubator-reef","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/incubator-reef","description":"Mirror of Apache REEF (Incubating)","fork":false,"url":"https://api.github.com/repos/apache/incubator-reef","forks_url":"https://api.github.com/repos/apache/incubator-reef/forks","keys_url":"https://api.github.com/repos/apache/incubator-reef/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/incubator-reef/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/incubator-reef/teams","hooks_url":"https://api.github.com/repos/apache/incubator-reef/hooks","issue_events_url":"https://api.github.com/repos/apache/incubator-reef/issues/events{/number}","events_url":"https://api.github.com/repos/apache/incubator-reef/events","assignees_url":"https://api.github.com/repos/apache/incubator-reef/assignees{/user}","branches_url":"https://api.github.com/repos/apache/incubator-reef/branches{/branch}","tags_url":"https://api.github.com/repos/apache/incubator-reef/tags","blobs_url":"https://api.github.com/repos/apache/incubator-reef/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/incubator-reef/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/incubator-reef/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/incubator-reef/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/incubator-reef/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/incubator-reef/languages","stargazers_url":"https://api.github.com/repos/apache/incubator-reef/stargazers","contributors_url":"https://api.github.com/repos/apache/incubator-reef/contributors","subscribers_url":"https://api.github.com/repos/apache/incubator-reef/subscribers","subscription_url":"https://api.github.com/repos/apache/incubator-reef/subscription","commits_url":"https://api.github.com/repos/apache/incubator-reef/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/incubator-reef/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/incubator-reef/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/incubator-reef/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/incubator-reef/contents/{+path}","compare_url":"https://api.github.com/repos/apache/incubator-reef/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/incubator-reef/merges","archive_url":"https://api.github.com/repos/apache/incubator-reef/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/incubator-reef/downloads","issues_url":"https://api.github.com/repos/apache/incubator-reef/issues{/number}","pulls_url":"https://api.github.com/repos/apache/incubator-reef/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/incubator-reef/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/incubator-reef/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/incubator-reef/labels{/name}","releases_url":"https://api.github.com/repos/apache/incubator-reef/releases{/id}","created_at":"2014-10-23T07:00:10Z","updated_at":"2015-11-12T04:21:51Z","pushed_at":"2015-11-14T07:39:04Z","git_url":"git://github.com/apache/incubator-reef.git","ssh_url":"git@github.com:apache/incubator-reef.git","clone_url":"https://github.com/apache/incubator-reef.git","svn_url":"https://github.com/apache/incubator-reef","homepage":null,"size":46720,"stargazers_count":34,"watchers_count":34,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":37,"mirror_url":"git://git.apache.org/incubator-reef.git","open_issues_count":11,"forks":37,"open_issues":11,"watchers":34,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-reef/pulls/625"},"html":{"href":"https://github.com/apache/incubator-reef/pull/625"},"issue":{"href":"https://api.github.com/repos/apache/incubator-reef/issues/625"},"comments":{"href":"https://api.github.com/repos/apache/incubator-reef/issues/625/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/incubator-reef/pulls/625/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/incubator-reef/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/incubator-reef/pulls/625/commits"},"statuses":{"href":"https://api.github.com/repos/apache/incubator-reef/statuses/bdd692a8226255a6c3a79d94156f6922ad5513ef"}}}}