{"action":"created","comment":{"url":"https://api.github.com/repos/amplab/tachyon/pulls/comments/37366296","id":37366296,"diff_hunk":"@@ -12,9 +14,16 @@ if [ -f tachyon-dev.box ]; then\n   rm -f tachyon-dev.box\n fi\n \n-vagrant up\n-vagrant package --output tachyon-dev.box default\n-vagrant destroy -f\n+BASE_BOX='chef/centos-7.0'\n+AVAIL_BOX=$(vagrant box list | grep $BASE_BOX | grep '(virtualbox, 1.0.0)')\n+","path":"deploy/vagrant/vbox/buildbox.sh","position":15,"original_position":15,"commit_id":"b112a3a1a7a601736739aee0e73f91a7fb98e483","original_commit_id":"b112a3a1a7a601736739aee0e73f91a7fb98e483","user":{"login":"yuzhu","id":736171,"avatar_url":"https://avatars.githubusercontent.com/u/736171?v=3","gravatar_id":"","url":"https://api.github.com/users/yuzhu","html_url":"https://github.com/yuzhu","followers_url":"https://api.github.com/users/yuzhu/followers","following_url":"https://api.github.com/users/yuzhu/following{/other_user}","gists_url":"https://api.github.com/users/yuzhu/gists{/gist_id}","starred_url":"https://api.github.com/users/yuzhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuzhu/subscriptions","organizations_url":"https://api.github.com/users/yuzhu/orgs","repos_url":"https://api.github.com/users/yuzhu/repos","events_url":"https://api.github.com/users/yuzhu/events{/privacy}","received_events_url":"https://api.github.com/users/yuzhu/received_events","type":"User","site_admin":false},"body":"@chen-tian We probably don't want the tachyon-dev.box to include tachyon and ufs.  Each time user can specify a different source for Tachyon, or a different ufs.  Tachyon source can be a locally shared directory between the host and the vm, when it is configured to fetch tachyon from local.\r\n\r\nFor the most part, we use ansible to provision everything. That's what we do on aws.   The virtual box image is just an optimization to save time. (similarly we could create an amazon ami to save launch time, but we have not done that) \r\n\r\nI agree the old code is broken because it forces the user to download java, maven and install them twice. I still think something like `if not installed, install maven` would have fixed the double install problem, without losing the ability to reuse virtualbox images, but I can see why this approach may be cleaner, since we are always  building from a known state that is centos7 image.\r\n\r\nI do think launch speed is important because the vagrant script is the quickest and the only way to test with an underfile system on a dev machine. If we can ensure relaunch speed with another script, then I am happy! \r\n","created_at":"2015-08-18T23:34:07Z","updated_at":"2015-08-18T23:34:07Z","html_url":"https://github.com/amplab/tachyon/pull/1323#discussion_r37366296","pull_request_url":"https://api.github.com/repos/amplab/tachyon/pulls/1323","_links":{"self":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/comments/37366296"},"html":{"href":"https://github.com/amplab/tachyon/pull/1323#discussion_r37366296"},"pull_request":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/1323"}}},"pull_request":{"url":"https://api.github.com/repos/amplab/tachyon/pulls/1323","id":42663172,"html_url":"https://github.com/amplab/tachyon/pull/1323","diff_url":"https://github.com/amplab/tachyon/pull/1323.diff","patch_url":"https://github.com/amplab/tachyon/pull/1323.patch","issue_url":"https://api.github.com/repos/amplab/tachyon/issues/1323","number":1323,"state":"open","locked":false,"title":"[TACHYON-809] use vagrant cli to create tachyon-dev box","user":{"login":"chen-tian","id":8989592,"avatar_url":"https://avatars.githubusercontent.com/u/8989592?v=3","gravatar_id":"","url":"https://api.github.com/users/chen-tian","html_url":"https://github.com/chen-tian","followers_url":"https://api.github.com/users/chen-tian/followers","following_url":"https://api.github.com/users/chen-tian/following{/other_user}","gists_url":"https://api.github.com/users/chen-tian/gists{/gist_id}","starred_url":"https://api.github.com/users/chen-tian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chen-tian/subscriptions","organizations_url":"https://api.github.com/users/chen-tian/orgs","repos_url":"https://api.github.com/users/chen-tian/repos","events_url":"https://api.github.com/users/chen-tian/events{/privacy}","received_events_url":"https://api.github.com/users/chen-tian/received_events","type":"User","site_admin":false},"body":"https://tachyon.atlassian.net/browse/TACHYON-809","created_at":"2015-08-18T05:43:58Z","updated_at":"2015-08-18T23:34:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c4e38f9f031d4c146ec73dec88e54f243be924c4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/amplab/tachyon/pulls/1323/commits","review_comments_url":"https://api.github.com/repos/amplab/tachyon/pulls/1323/comments","review_comment_url":"https://api.github.com/repos/amplab/tachyon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/amplab/tachyon/issues/1323/comments","statuses_url":"https://api.github.com/repos/amplab/tachyon/statuses/b112a3a1a7a601736739aee0e73f91a7fb98e483","head":{"label":"chen-tian:tachyon-809","ref":"tachyon-809","sha":"b112a3a1a7a601736739aee0e73f91a7fb98e483","user":{"login":"chen-tian","id":8989592,"avatar_url":"https://avatars.githubusercontent.com/u/8989592?v=3","gravatar_id":"","url":"https://api.github.com/users/chen-tian","html_url":"https://github.com/chen-tian","followers_url":"https://api.github.com/users/chen-tian/followers","following_url":"https://api.github.com/users/chen-tian/following{/other_user}","gists_url":"https://api.github.com/users/chen-tian/gists{/gist_id}","starred_url":"https://api.github.com/users/chen-tian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chen-tian/subscriptions","organizations_url":"https://api.github.com/users/chen-tian/orgs","repos_url":"https://api.github.com/users/chen-tian/repos","events_url":"https://api.github.com/users/chen-tian/events{/privacy}","received_events_url":"https://api.github.com/users/chen-tian/received_events","type":"User","site_admin":false},"repo":{"id":32605554,"name":"tachyon","full_name":"chen-tian/tachyon","owner":{"login":"chen-tian","id":8989592,"avatar_url":"https://avatars.githubusercontent.com/u/8989592?v=3","gravatar_id":"","url":"https://api.github.com/users/chen-tian","html_url":"https://github.com/chen-tian","followers_url":"https://api.github.com/users/chen-tian/followers","following_url":"https://api.github.com/users/chen-tian/following{/other_user}","gists_url":"https://api.github.com/users/chen-tian/gists{/gist_id}","starred_url":"https://api.github.com/users/chen-tian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chen-tian/subscriptions","organizations_url":"https://api.github.com/users/chen-tian/orgs","repos_url":"https://api.github.com/users/chen-tian/repos","events_url":"https://api.github.com/users/chen-tian/events{/privacy}","received_events_url":"https://api.github.com/users/chen-tian/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chen-tian/tachyon","description":" A Reliable Memory Centric Distributed Storage System","fork":true,"url":"https://api.github.com/repos/chen-tian/tachyon","forks_url":"https://api.github.com/repos/chen-tian/tachyon/forks","keys_url":"https://api.github.com/repos/chen-tian/tachyon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chen-tian/tachyon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chen-tian/tachyon/teams","hooks_url":"https://api.github.com/repos/chen-tian/tachyon/hooks","issue_events_url":"https://api.github.com/repos/chen-tian/tachyon/issues/events{/number}","events_url":"https://api.github.com/repos/chen-tian/tachyon/events","assignees_url":"https://api.github.com/repos/chen-tian/tachyon/assignees{/user}","branches_url":"https://api.github.com/repos/chen-tian/tachyon/branches{/branch}","tags_url":"https://api.github.com/repos/chen-tian/tachyon/tags","blobs_url":"https://api.github.com/repos/chen-tian/tachyon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chen-tian/tachyon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chen-tian/tachyon/git/refs{/sha}","trees_url":"https://api.github.com/repos/chen-tian/tachyon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chen-tian/tachyon/statuses/{sha}","languages_url":"https://api.github.com/repos/chen-tian/tachyon/languages","stargazers_url":"https://api.github.com/repos/chen-tian/tachyon/stargazers","contributors_url":"https://api.github.com/repos/chen-tian/tachyon/contributors","subscribers_url":"https://api.github.com/repos/chen-tian/tachyon/subscribers","subscription_url":"https://api.github.com/repos/chen-tian/tachyon/subscription","commits_url":"https://api.github.com/repos/chen-tian/tachyon/commits{/sha}","git_commits_url":"https://api.github.com/repos/chen-tian/tachyon/git/commits{/sha}","comments_url":"https://api.github.com/repos/chen-tian/tachyon/comments{/number}","issue_comment_url":"https://api.github.com/repos/chen-tian/tachyon/issues/comments{/number}","contents_url":"https://api.github.com/repos/chen-tian/tachyon/contents/{+path}","compare_url":"https://api.github.com/repos/chen-tian/tachyon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chen-tian/tachyon/merges","archive_url":"https://api.github.com/repos/chen-tian/tachyon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chen-tian/tachyon/downloads","issues_url":"https://api.github.com/repos/chen-tian/tachyon/issues{/number}","pulls_url":"https://api.github.com/repos/chen-tian/tachyon/pulls{/number}","milestones_url":"https://api.github.com/repos/chen-tian/tachyon/milestones{/number}","notifications_url":"https://api.github.com/repos/chen-tian/tachyon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chen-tian/tachyon/labels{/name}","releases_url":"https://api.github.com/repos/chen-tian/tachyon/releases{/id}","created_at":"2015-03-20T20:29:55Z","updated_at":"2015-04-08T20:12:16Z","pushed_at":"2015-08-18T21:07:17Z","git_url":"git://github.com/chen-tian/tachyon.git","ssh_url":"git@github.com:chen-tian/tachyon.git","clone_url":"https://github.com/chen-tian/tachyon.git","svn_url":"https://github.com/chen-tian/tachyon","homepage":"http://tachyon-project.org","size":16269,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"amplab:master","ref":"master","sha":"4569078ead211bc5f1c133a8acf3c49314ba269c","user":{"login":"amplab","id":1438454,"avatar_url":"https://avatars.githubusercontent.com/u/1438454?v=3","gravatar_id":"","url":"https://api.github.com/users/amplab","html_url":"https://github.com/amplab","followers_url":"https://api.github.com/users/amplab/followers","following_url":"https://api.github.com/users/amplab/following{/other_user}","gists_url":"https://api.github.com/users/amplab/gists{/gist_id}","starred_url":"https://api.github.com/users/amplab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amplab/subscriptions","organizations_url":"https://api.github.com/users/amplab/orgs","repos_url":"https://api.github.com/users/amplab/repos","events_url":"https://api.github.com/users/amplab/events{/privacy}","received_events_url":"https://api.github.com/users/amplab/received_events","type":"Organization","site_admin":false},"repo":{"id":7276954,"name":"tachyon","full_name":"amplab/tachyon","owner":{"login":"amplab","id":1438454,"avatar_url":"https://avatars.githubusercontent.com/u/1438454?v=3","gravatar_id":"","url":"https://api.github.com/users/amplab","html_url":"https://github.com/amplab","followers_url":"https://api.github.com/users/amplab/followers","following_url":"https://api.github.com/users/amplab/following{/other_user}","gists_url":"https://api.github.com/users/amplab/gists{/gist_id}","starred_url":"https://api.github.com/users/amplab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amplab/subscriptions","organizations_url":"https://api.github.com/users/amplab/orgs","repos_url":"https://api.github.com/users/amplab/repos","events_url":"https://api.github.com/users/amplab/events{/privacy}","received_events_url":"https://api.github.com/users/amplab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/amplab/tachyon","description":" A Reliable Memory Centric Distributed Storage System","fork":false,"url":"https://api.github.com/repos/amplab/tachyon","forks_url":"https://api.github.com/repos/amplab/tachyon/forks","keys_url":"https://api.github.com/repos/amplab/tachyon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amplab/tachyon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amplab/tachyon/teams","hooks_url":"https://api.github.com/repos/amplab/tachyon/hooks","issue_events_url":"https://api.github.com/repos/amplab/tachyon/issues/events{/number}","events_url":"https://api.github.com/repos/amplab/tachyon/events","assignees_url":"https://api.github.com/repos/amplab/tachyon/assignees{/user}","branches_url":"https://api.github.com/repos/amplab/tachyon/branches{/branch}","tags_url":"https://api.github.com/repos/amplab/tachyon/tags","blobs_url":"https://api.github.com/repos/amplab/tachyon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amplab/tachyon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amplab/tachyon/git/refs{/sha}","trees_url":"https://api.github.com/repos/amplab/tachyon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amplab/tachyon/statuses/{sha}","languages_url":"https://api.github.com/repos/amplab/tachyon/languages","stargazers_url":"https://api.github.com/repos/amplab/tachyon/stargazers","contributors_url":"https://api.github.com/repos/amplab/tachyon/contributors","subscribers_url":"https://api.github.com/repos/amplab/tachyon/subscribers","subscription_url":"https://api.github.com/repos/amplab/tachyon/subscription","commits_url":"https://api.github.com/repos/amplab/tachyon/commits{/sha}","git_commits_url":"https://api.github.com/repos/amplab/tachyon/git/commits{/sha}","comments_url":"https://api.github.com/repos/amplab/tachyon/comments{/number}","issue_comment_url":"https://api.github.com/repos/amplab/tachyon/issues/comments{/number}","contents_url":"https://api.github.com/repos/amplab/tachyon/contents/{+path}","compare_url":"https://api.github.com/repos/amplab/tachyon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amplab/tachyon/merges","archive_url":"https://api.github.com/repos/amplab/tachyon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amplab/tachyon/downloads","issues_url":"https://api.github.com/repos/amplab/tachyon/issues{/number}","pulls_url":"https://api.github.com/repos/amplab/tachyon/pulls{/number}","milestones_url":"https://api.github.com/repos/amplab/tachyon/milestones{/number}","notifications_url":"https://api.github.com/repos/amplab/tachyon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amplab/tachyon/labels{/name}","releases_url":"https://api.github.com/repos/amplab/tachyon/releases{/id}","created_at":"2012-12-21T17:43:46Z","updated_at":"2015-08-14T19:04:01Z","pushed_at":"2015-08-18T23:33:34Z","git_url":"git://github.com/amplab/tachyon.git","ssh_url":"git@github.com:amplab/tachyon.git","clone_url":"https://github.com/amplab/tachyon.git","svn_url":"https://github.com/amplab/tachyon","homepage":"http://tachyon-project.org","size":40061,"stargazers_count":1502,"watchers_count":1502,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":579,"mirror_url":null,"open_issues_count":30,"forks":579,"open_issues":30,"watchers":1502,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/1323"},"html":{"href":"https://github.com/amplab/tachyon/pull/1323"},"issue":{"href":"https://api.github.com/repos/amplab/tachyon/issues/1323"},"comments":{"href":"https://api.github.com/repos/amplab/tachyon/issues/1323/comments"},"review_comments":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/1323/comments"},"review_comment":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/1323/commits"},"statuses":{"href":"https://api.github.com/repos/amplab/tachyon/statuses/b112a3a1a7a601736739aee0e73f91a7fb98e483"}}}}