{"action":"opened","number":48,"pull_request":{"url":"https://api.github.com/repos/openblockchain/obc-dev-env/pulls/48","id":60546708,"html_url":"https://github.com/openblockchain/obc-dev-env/pull/48","diff_url":"https://github.com/openblockchain/obc-dev-env/pull/48.diff","patch_url":"https://github.com/openblockchain/obc-dev-env/pull/48.patch","issue_url":"https://api.github.com/repos/openblockchain/obc-dev-env/issues/48","number":48,"state":"open","locked":false,"title":"Convert vagrant-based baseimage environment over to use Packer/PPA","user":{"login":"ghaskins","id":367132,"avatar_url":"https://avatars.githubusercontent.com/u/367132?v=3","gravatar_id":"","url":"https://api.github.com/users/ghaskins","html_url":"https://github.com/ghaskins","followers_url":"https://api.github.com/users/ghaskins/followers","following_url":"https://api.github.com/users/ghaskins/following{/other_user}","gists_url":"https://api.github.com/users/ghaskins/gists{/gist_id}","starred_url":"https://api.github.com/users/ghaskins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghaskins/subscriptions","organizations_url":"https://api.github.com/users/ghaskins/orgs","repos_url":"https://api.github.com/users/ghaskins/repos","events_url":"https://api.github.com/users/ghaskins/events{/privacy}","received_events_url":"https://api.github.com/users/ghaskins/received_events","type":"User","site_admin":false},"body":"We currently use vagrant+ubuntu for development and docker+debian for docker\r\ncontainerization.  There are several problems with this approach.\r\n\r\n1) We still manually JIT compile things like rocksdb into our docker environments,\r\nwhich is slow to provision\r\n\r\n2) Our environments diverge (ubuntu/trusty on the vagrant side, debian/jessie on the\r\ndocker side) which will make things increasingly difficult to manage going forward.\r\n\r\nThis patch unifies the two environments using a few FOSS/cloud technologies, packer\r\n(http://packer.io) and Launchpad PPA (http://launchpad.net).  We migrate some of the\r\nmanually built components, such as RocksDB to a Personal Package Archive (PPA) to be\r\nserved via standard ubuntu mechanisms (e.g. \"apt-get install\").  We also utilize\r\npacker to normalize the specification and building of our \"baseimage\" such that\r\nwe can emit both vagrant and docker artifacts from one single definition.\r\n\r\nWe may migrate some other components (such as golang, node.js, etc) to the PPA mechanism\r\nin the future.\r\n\r\nSigned-off-by: Gregory Haskins <gregory.haskins@gmail.com>","created_at":"2016-02-24T17:30:16Z","updated_at":"2016-02-24T17:30:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openblockchain/obc-dev-env/pulls/48/commits","review_comments_url":"https://api.github.com/repos/openblockchain/obc-dev-env/pulls/48/comments","review_comment_url":"https://api.github.com/repos/openblockchain/obc-dev-env/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openblockchain/obc-dev-env/issues/48/comments","statuses_url":"https://api.github.com/repos/openblockchain/obc-dev-env/statuses/1eb2cb38fe8be0fe904d7753e4e1de7149d8bdb0","head":{"label":"ghaskins:packer-baseimage","ref":"packer-baseimage","sha":"1eb2cb38fe8be0fe904d7753e4e1de7149d8bdb0","user":{"login":"ghaskins","id":367132,"avatar_url":"https://avatars.githubusercontent.com/u/367132?v=3","gravatar_id":"","url":"https://api.github.com/users/ghaskins","html_url":"https://github.com/ghaskins","followers_url":"https://api.github.com/users/ghaskins/followers","following_url":"https://api.github.com/users/ghaskins/following{/other_user}","gists_url":"https://api.github.com/users/ghaskins/gists{/gist_id}","starred_url":"https://api.github.com/users/ghaskins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghaskins/subscriptions","organizations_url":"https://api.github.com/users/ghaskins/orgs","repos_url":"https://api.github.com/users/ghaskins/repos","events_url":"https://api.github.com/users/ghaskins/events{/privacy}","received_events_url":"https://api.github.com/users/ghaskins/received_events","type":"User","site_admin":false},"repo":{"id":52123683,"name":"obc-dev-env","full_name":"ghaskins/obc-dev-env","owner":{"login":"ghaskins","id":367132,"avatar_url":"https://avatars.githubusercontent.com/u/367132?v=3","gravatar_id":"","url":"https://api.github.com/users/ghaskins","html_url":"https://github.com/ghaskins","followers_url":"https://api.github.com/users/ghaskins/followers","following_url":"https://api.github.com/users/ghaskins/following{/other_user}","gists_url":"https://api.github.com/users/ghaskins/gists{/gist_id}","starred_url":"https://api.github.com/users/ghaskins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghaskins/subscriptions","organizations_url":"https://api.github.com/users/ghaskins/orgs","repos_url":"https://api.github.com/users/ghaskins/repos","events_url":"https://api.github.com/users/ghaskins/events{/privacy}","received_events_url":"https://api.github.com/users/ghaskins/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ghaskins/obc-dev-env","description":"Development environment set up scripts","fork":true,"url":"https://api.github.com/repos/ghaskins/obc-dev-env","forks_url":"https://api.github.com/repos/ghaskins/obc-dev-env/forks","keys_url":"https://api.github.com/repos/ghaskins/obc-dev-env/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ghaskins/obc-dev-env/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ghaskins/obc-dev-env/teams","hooks_url":"https://api.github.com/repos/ghaskins/obc-dev-env/hooks","issue_events_url":"https://api.github.com/repos/ghaskins/obc-dev-env/issues/events{/number}","events_url":"https://api.github.com/repos/ghaskins/obc-dev-env/events","assignees_url":"https://api.github.com/repos/ghaskins/obc-dev-env/assignees{/user}","branches_url":"https://api.github.com/repos/ghaskins/obc-dev-env/branches{/branch}","tags_url":"https://api.github.com/repos/ghaskins/obc-dev-env/tags","blobs_url":"https://api.github.com/repos/ghaskins/obc-dev-env/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ghaskins/obc-dev-env/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ghaskins/obc-dev-env/git/refs{/sha}","trees_url":"https://api.github.com/repos/ghaskins/obc-dev-env/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ghaskins/obc-dev-env/statuses/{sha}","languages_url":"https://api.github.com/repos/ghaskins/obc-dev-env/languages","stargazers_url":"https://api.github.com/repos/ghaskins/obc-dev-env/stargazers","contributors_url":"https://api.github.com/repos/ghaskins/obc-dev-env/contributors","subscribers_url":"https://api.github.com/repos/ghaskins/obc-dev-env/subscribers","subscription_url":"https://api.github.com/repos/ghaskins/obc-dev-env/subscription","commits_url":"https://api.github.com/repos/ghaskins/obc-dev-env/commits{/sha}","git_commits_url":"https://api.github.com/repos/ghaskins/obc-dev-env/git/commits{/sha}","comments_url":"https://api.github.com/repos/ghaskins/obc-dev-env/comments{/number}","issue_comment_url":"https://api.github.com/repos/ghaskins/obc-dev-env/issues/comments{/number}","contents_url":"https://api.github.com/repos/ghaskins/obc-dev-env/contents/{+path}","compare_url":"https://api.github.com/repos/ghaskins/obc-dev-env/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ghaskins/obc-dev-env/merges","archive_url":"https://api.github.com/repos/ghaskins/obc-dev-env/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ghaskins/obc-dev-env/downloads","issues_url":"https://api.github.com/repos/ghaskins/obc-dev-env/issues{/number}","pulls_url":"https://api.github.com/repos/ghaskins/obc-dev-env/pulls{/number}","milestones_url":"https://api.github.com/repos/ghaskins/obc-dev-env/milestones{/number}","notifications_url":"https://api.github.com/repos/ghaskins/obc-dev-env/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ghaskins/obc-dev-env/labels{/name}","releases_url":"https://api.github.com/repos/ghaskins/obc-dev-env/releases{/id}","deployments_url":"https://api.github.com/repos/ghaskins/obc-dev-env/deployments","created_at":"2016-02-19T23:35:40Z","updated_at":"2016-02-19T23:35:41Z","pushed_at":"2016-02-24T17:29:10Z","git_url":"git://github.com/ghaskins/obc-dev-env.git","ssh_url":"git@github.com:ghaskins/obc-dev-env.git","clone_url":"https://github.com/ghaskins/obc-dev-env.git","svn_url":"https://github.com/ghaskins/obc-dev-env","homepage":null,"size":901,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openblockchain:master","ref":"master","sha":"394d5bed1e3a4e24efc6dec76413ee23f010c073","user":{"login":"openblockchain","id":14354670,"avatar_url":"https://avatars.githubusercontent.com/u/14354670?v=3","gravatar_id":"","url":"https://api.github.com/users/openblockchain","html_url":"https://github.com/openblockchain","followers_url":"https://api.github.com/users/openblockchain/followers","following_url":"https://api.github.com/users/openblockchain/following{/other_user}","gists_url":"https://api.github.com/users/openblockchain/gists{/gist_id}","starred_url":"https://api.github.com/users/openblockchain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openblockchain/subscriptions","organizations_url":"https://api.github.com/users/openblockchain/orgs","repos_url":"https://api.github.com/users/openblockchain/repos","events_url":"https://api.github.com/users/openblockchain/events{/privacy}","received_events_url":"https://api.github.com/users/openblockchain/received_events","type":"Organization","site_admin":false},"repo":{"id":42975628,"name":"obc-dev-env","full_name":"openblockchain/obc-dev-env","owner":{"login":"openblockchain","id":14354670,"avatar_url":"https://avatars.githubusercontent.com/u/14354670?v=3","gravatar_id":"","url":"https://api.github.com/users/openblockchain","html_url":"https://github.com/openblockchain","followers_url":"https://api.github.com/users/openblockchain/followers","following_url":"https://api.github.com/users/openblockchain/following{/other_user}","gists_url":"https://api.github.com/users/openblockchain/gists{/gist_id}","starred_url":"https://api.github.com/users/openblockchain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openblockchain/subscriptions","organizations_url":"https://api.github.com/users/openblockchain/orgs","repos_url":"https://api.github.com/users/openblockchain/repos","events_url":"https://api.github.com/users/openblockchain/events{/privacy}","received_events_url":"https://api.github.com/users/openblockchain/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openblockchain/obc-dev-env","description":"Development environment set up scripts","fork":false,"url":"https://api.github.com/repos/openblockchain/obc-dev-env","forks_url":"https://api.github.com/repos/openblockchain/obc-dev-env/forks","keys_url":"https://api.github.com/repos/openblockchain/obc-dev-env/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openblockchain/obc-dev-env/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openblockchain/obc-dev-env/teams","hooks_url":"https://api.github.com/repos/openblockchain/obc-dev-env/hooks","issue_events_url":"https://api.github.com/repos/openblockchain/obc-dev-env/issues/events{/number}","events_url":"https://api.github.com/repos/openblockchain/obc-dev-env/events","assignees_url":"https://api.github.com/repos/openblockchain/obc-dev-env/assignees{/user}","branches_url":"https://api.github.com/repos/openblockchain/obc-dev-env/branches{/branch}","tags_url":"https://api.github.com/repos/openblockchain/obc-dev-env/tags","blobs_url":"https://api.github.com/repos/openblockchain/obc-dev-env/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openblockchain/obc-dev-env/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openblockchain/obc-dev-env/git/refs{/sha}","trees_url":"https://api.github.com/repos/openblockchain/obc-dev-env/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openblockchain/obc-dev-env/statuses/{sha}","languages_url":"https://api.github.com/repos/openblockchain/obc-dev-env/languages","stargazers_url":"https://api.github.com/repos/openblockchain/obc-dev-env/stargazers","contributors_url":"https://api.github.com/repos/openblockchain/obc-dev-env/contributors","subscribers_url":"https://api.github.com/repos/openblockchain/obc-dev-env/subscribers","subscription_url":"https://api.github.com/repos/openblockchain/obc-dev-env/subscription","commits_url":"https://api.github.com/repos/openblockchain/obc-dev-env/commits{/sha}","git_commits_url":"https://api.github.com/repos/openblockchain/obc-dev-env/git/commits{/sha}","comments_url":"https://api.github.com/repos/openblockchain/obc-dev-env/comments{/number}","issue_comment_url":"https://api.github.com/repos/openblockchain/obc-dev-env/issues/comments{/number}","contents_url":"https://api.github.com/repos/openblockchain/obc-dev-env/contents/{+path}","compare_url":"https://api.github.com/repos/openblockchain/obc-dev-env/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openblockchain/obc-dev-env/merges","archive_url":"https://api.github.com/repos/openblockchain/obc-dev-env/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openblockchain/obc-dev-env/downloads","issues_url":"https://api.github.com/repos/openblockchain/obc-dev-env/issues{/number}","pulls_url":"https://api.github.com/repos/openblockchain/obc-dev-env/pulls{/number}","milestones_url":"https://api.github.com/repos/openblockchain/obc-dev-env/milestones{/number}","notifications_url":"https://api.github.com/repos/openblockchain/obc-dev-env/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openblockchain/obc-dev-env/labels{/name}","releases_url":"https://api.github.com/repos/openblockchain/obc-dev-env/releases{/id}","deployments_url":"https://api.github.com/repos/openblockchain/obc-dev-env/deployments","created_at":"2015-09-23T03:16:25Z","updated_at":"2016-02-24T06:53:11Z","pushed_at":"2016-02-24T17:30:17Z","git_url":"git://github.com/openblockchain/obc-dev-env.git","ssh_url":"git@github.com:openblockchain/obc-dev-env.git","clone_url":"https://github.com/openblockchain/obc-dev-env.git","svn_url":"https://github.com/openblockchain/obc-dev-env","homepage":null,"size":108,"stargazers_count":72,"watchers_count":72,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":4,"forks":24,"open_issues":4,"watchers":72,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openblockchain/obc-dev-env/pulls/48"},"html":{"href":"https://github.com/openblockchain/obc-dev-env/pull/48"},"issue":{"href":"https://api.github.com/repos/openblockchain/obc-dev-env/issues/48"},"comments":{"href":"https://api.github.com/repos/openblockchain/obc-dev-env/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/openblockchain/obc-dev-env/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/openblockchain/obc-dev-env/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openblockchain/obc-dev-env/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/openblockchain/obc-dev-env/statuses/1eb2cb38fe8be0fe904d7753e4e1de7149d8bdb0"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":474,"deletions":313,"changed_files":23}}