{"action":"created","comment":{"url":"https://api.github.com/repos/kubernetes/minikube/pulls/comments/62412840","id":62412840,"diff_hunk":"@@ -0,0 +1,25 @@\n+#!/bin/bash\n+set -e\n+\n+ISO=minikube.iso\n+tmpdir=$(mktemp -d)\n+echo \"Building in $tmpdir.\"\n+cp -r . $tmpdir/\n+\n+pushd $tmpdir\n+# Get nsenter.\n+docker run --rm jpetazzo/nsenter cat /nsenter > $tmpdir/nsenter && chmod +x $tmpdir/nsenter\n+\n+# Do the build.\n+docker build -t iso .\n+\n+# Output the iso.\n+docker run iso > $ISO\n+\n+popd\n+mv $tmpdir/$ISO .\n+\n+# Clean up.\n+rm -rf $tmpdir\n+\n+echo \"Iso available at ./$ISO\"","path":"iso/build.sh","position":25,"original_position":25,"commit_id":"18ca13b68926ce9f37de1df59aa7429b34373ed5","original_commit_id":"18ca13b68926ce9f37de1df59aa7429b34373ed5","user":{"login":"luxas","id":5442475,"avatar_url":"https://avatars.githubusercontent.com/u/5442475?v=3","gravatar_id":"","url":"https://api.github.com/users/luxas","html_url":"https://github.com/luxas","followers_url":"https://api.github.com/users/luxas/followers","following_url":"https://api.github.com/users/luxas/following{/other_user}","gists_url":"https://api.github.com/users/luxas/gists{/gist_id}","starred_url":"https://api.github.com/users/luxas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luxas/subscriptions","organizations_url":"https://api.github.com/users/luxas/orgs","repos_url":"https://api.github.com/users/luxas/repos","events_url":"https://api.github.com/users/luxas/events{/privacy}","received_events_url":"https://api.github.com/users/luxas/received_events","type":"User","site_admin":false},"body":"nit: newline","created_at":"2016-05-07T06:29:48Z","updated_at":"2016-05-07T06:29:48Z","html_url":"https://github.com/kubernetes/minikube/pull/41#discussion_r62412840","pull_request_url":"https://api.github.com/repos/kubernetes/minikube/pulls/41","_links":{"self":{"href":"https://api.github.com/repos/kubernetes/minikube/pulls/comments/62412840"},"html":{"href":"https://github.com/kubernetes/minikube/pull/41#discussion_r62412840"},"pull_request":{"href":"https://api.github.com/repos/kubernetes/minikube/pulls/41"}}},"pull_request":{"url":"https://api.github.com/repos/kubernetes/minikube/pulls/41","id":68906632,"html_url":"https://github.com/kubernetes/minikube/pull/41","diff_url":"https://github.com/kubernetes/minikube/pull/41.diff","patch_url":"https://github.com/kubernetes/minikube/pull/41.patch","issue_url":"https://api.github.com/repos/kubernetes/minikube/issues/41","number":41,"state":"open","locked":false,"title":"Add scripts for building an iso","user":{"login":"dlorenc","id":1714486,"avatar_url":"https://avatars.githubusercontent.com/u/1714486?v=3","gravatar_id":"","url":"https://api.github.com/users/dlorenc","html_url":"https://github.com/dlorenc","followers_url":"https://api.github.com/users/dlorenc/followers","following_url":"https://api.github.com/users/dlorenc/following{/other_user}","gists_url":"https://api.github.com/users/dlorenc/gists{/gist_id}","starred_url":"https://api.github.com/users/dlorenc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlorenc/subscriptions","organizations_url":"https://api.github.com/users/dlorenc/orgs","repos_url":"https://api.github.com/users/dlorenc/repos","events_url":"https://api.github.com/users/dlorenc/events{/privacy}","received_events_url":"https://api.github.com/users/dlorenc/received_events","type":"User","site_admin":false},"body":"This script allows us to build and release an iso with dependencies inside it. The iso is based on boot2docker, and the build scripts were heavily inspired by https://github.com/skippbox/boot2k8s\r\n\r\nWe don't bake in any kubernetes tooling yet, the only thing so far is installing nsenter and pinning docker to a particular version.","created_at":"2016-05-04T18:12:03Z","updated_at":"2016-05-07T06:29:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"787333949a7f73db0ff242016fbe49f3de2c71a4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kubernetes/minikube/pulls/41/commits","review_comments_url":"https://api.github.com/repos/kubernetes/minikube/pulls/41/comments","review_comment_url":"https://api.github.com/repos/kubernetes/minikube/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes/minikube/issues/41/comments","statuses_url":"https://api.github.com/repos/kubernetes/minikube/statuses/18ca13b68926ce9f37de1df59aa7429b34373ed5","head":{"label":"dlorenc:iso","ref":"iso","sha":"18ca13b68926ce9f37de1df59aa7429b34373ed5","user":{"login":"dlorenc","id":1714486,"avatar_url":"https://avatars.githubusercontent.com/u/1714486?v=3","gravatar_id":"","url":"https://api.github.com/users/dlorenc","html_url":"https://github.com/dlorenc","followers_url":"https://api.github.com/users/dlorenc/followers","following_url":"https://api.github.com/users/dlorenc/following{/other_user}","gists_url":"https://api.github.com/users/dlorenc/gists{/gist_id}","starred_url":"https://api.github.com/users/dlorenc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlorenc/subscriptions","organizations_url":"https://api.github.com/users/dlorenc/orgs","repos_url":"https://api.github.com/users/dlorenc/repos","events_url":"https://api.github.com/users/dlorenc/events{/privacy}","received_events_url":"https://api.github.com/users/dlorenc/received_events","type":"User","site_admin":false},"repo":{"id":56525804,"name":"minikube","full_name":"dlorenc/minikube","owner":{"login":"dlorenc","id":1714486,"avatar_url":"https://avatars.githubusercontent.com/u/1714486?v=3","gravatar_id":"","url":"https://api.github.com/users/dlorenc","html_url":"https://github.com/dlorenc","followers_url":"https://api.github.com/users/dlorenc/followers","following_url":"https://api.github.com/users/dlorenc/following{/other_user}","gists_url":"https://api.github.com/users/dlorenc/gists{/gist_id}","starred_url":"https://api.github.com/users/dlorenc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlorenc/subscriptions","organizations_url":"https://api.github.com/users/dlorenc/orgs","repos_url":"https://api.github.com/users/dlorenc/repos","events_url":"https://api.github.com/users/dlorenc/events{/privacy}","received_events_url":"https://api.github.com/users/dlorenc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dlorenc/minikube","description":"Run Kubernetes locally","fork":true,"url":"https://api.github.com/repos/dlorenc/minikube","forks_url":"https://api.github.com/repos/dlorenc/minikube/forks","keys_url":"https://api.github.com/repos/dlorenc/minikube/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dlorenc/minikube/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dlorenc/minikube/teams","hooks_url":"https://api.github.com/repos/dlorenc/minikube/hooks","issue_events_url":"https://api.github.com/repos/dlorenc/minikube/issues/events{/number}","events_url":"https://api.github.com/repos/dlorenc/minikube/events","assignees_url":"https://api.github.com/repos/dlorenc/minikube/assignees{/user}","branches_url":"https://api.github.com/repos/dlorenc/minikube/branches{/branch}","tags_url":"https://api.github.com/repos/dlorenc/minikube/tags","blobs_url":"https://api.github.com/repos/dlorenc/minikube/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dlorenc/minikube/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dlorenc/minikube/git/refs{/sha}","trees_url":"https://api.github.com/repos/dlorenc/minikube/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dlorenc/minikube/statuses/{sha}","languages_url":"https://api.github.com/repos/dlorenc/minikube/languages","stargazers_url":"https://api.github.com/repos/dlorenc/minikube/stargazers","contributors_url":"https://api.github.com/repos/dlorenc/minikube/contributors","subscribers_url":"https://api.github.com/repos/dlorenc/minikube/subscribers","subscription_url":"https://api.github.com/repos/dlorenc/minikube/subscription","commits_url":"https://api.github.com/repos/dlorenc/minikube/commits{/sha}","git_commits_url":"https://api.github.com/repos/dlorenc/minikube/git/commits{/sha}","comments_url":"https://api.github.com/repos/dlorenc/minikube/comments{/number}","issue_comment_url":"https://api.github.com/repos/dlorenc/minikube/issues/comments{/number}","contents_url":"https://api.github.com/repos/dlorenc/minikube/contents/{+path}","compare_url":"https://api.github.com/repos/dlorenc/minikube/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dlorenc/minikube/merges","archive_url":"https://api.github.com/repos/dlorenc/minikube/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dlorenc/minikube/downloads","issues_url":"https://api.github.com/repos/dlorenc/minikube/issues{/number}","pulls_url":"https://api.github.com/repos/dlorenc/minikube/pulls{/number}","milestones_url":"https://api.github.com/repos/dlorenc/minikube/milestones{/number}","notifications_url":"https://api.github.com/repos/dlorenc/minikube/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dlorenc/minikube/labels{/name}","releases_url":"https://api.github.com/repos/dlorenc/minikube/releases{/id}","deployments_url":"https://api.github.com/repos/dlorenc/minikube/deployments","created_at":"2016-04-18T16:58:19Z","updated_at":"2016-04-25T17:08:47Z","pushed_at":"2016-05-06T23:28:21Z","git_url":"git://github.com/dlorenc/minikube.git","ssh_url":"git@github.com:dlorenc/minikube.git","clone_url":"https://github.com/dlorenc/minikube.git","svn_url":"https://github.com/dlorenc/minikube","homepage":null,"size":7061,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"kubernetes:master","ref":"master","sha":"512703be7bb38a09180bdb3af4e0dc83edd91792","user":{"login":"kubernetes","id":13629408,"avatar_url":"https://avatars.githubusercontent.com/u/13629408?v=3","gravatar_id":"","url":"https://api.github.com/users/kubernetes","html_url":"https://github.com/kubernetes","followers_url":"https://api.github.com/users/kubernetes/followers","following_url":"https://api.github.com/users/kubernetes/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes/subscriptions","organizations_url":"https://api.github.com/users/kubernetes/orgs","repos_url":"https://api.github.com/users/kubernetes/repos","events_url":"https://api.github.com/users/kubernetes/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes/received_events","type":"Organization","site_admin":false},"repo":{"id":56353740,"name":"minikube","full_name":"kubernetes/minikube","owner":{"login":"kubernetes","id":13629408,"avatar_url":"https://avatars.githubusercontent.com/u/13629408?v=3","gravatar_id":"","url":"https://api.github.com/users/kubernetes","html_url":"https://github.com/kubernetes","followers_url":"https://api.github.com/users/kubernetes/followers","following_url":"https://api.github.com/users/kubernetes/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes/subscriptions","organizations_url":"https://api.github.com/users/kubernetes/orgs","repos_url":"https://api.github.com/users/kubernetes/repos","events_url":"https://api.github.com/users/kubernetes/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kubernetes/minikube","description":"Run Kubernetes locally","fork":false,"url":"https://api.github.com/repos/kubernetes/minikube","forks_url":"https://api.github.com/repos/kubernetes/minikube/forks","keys_url":"https://api.github.com/repos/kubernetes/minikube/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kubernetes/minikube/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kubernetes/minikube/teams","hooks_url":"https://api.github.com/repos/kubernetes/minikube/hooks","issue_events_url":"https://api.github.com/repos/kubernetes/minikube/issues/events{/number}","events_url":"https://api.github.com/repos/kubernetes/minikube/events","assignees_url":"https://api.github.com/repos/kubernetes/minikube/assignees{/user}","branches_url":"https://api.github.com/repos/kubernetes/minikube/branches{/branch}","tags_url":"https://api.github.com/repos/kubernetes/minikube/tags","blobs_url":"https://api.github.com/repos/kubernetes/minikube/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kubernetes/minikube/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kubernetes/minikube/git/refs{/sha}","trees_url":"https://api.github.com/repos/kubernetes/minikube/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kubernetes/minikube/statuses/{sha}","languages_url":"https://api.github.com/repos/kubernetes/minikube/languages","stargazers_url":"https://api.github.com/repos/kubernetes/minikube/stargazers","contributors_url":"https://api.github.com/repos/kubernetes/minikube/contributors","subscribers_url":"https://api.github.com/repos/kubernetes/minikube/subscribers","subscription_url":"https://api.github.com/repos/kubernetes/minikube/subscription","commits_url":"https://api.github.com/repos/kubernetes/minikube/commits{/sha}","git_commits_url":"https://api.github.com/repos/kubernetes/minikube/git/commits{/sha}","comments_url":"https://api.github.com/repos/kubernetes/minikube/comments{/number}","issue_comment_url":"https://api.github.com/repos/kubernetes/minikube/issues/comments{/number}","contents_url":"https://api.github.com/repos/kubernetes/minikube/contents/{+path}","compare_url":"https://api.github.com/repos/kubernetes/minikube/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kubernetes/minikube/merges","archive_url":"https://api.github.com/repos/kubernetes/minikube/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kubernetes/minikube/downloads","issues_url":"https://api.github.com/repos/kubernetes/minikube/issues{/number}","pulls_url":"https://api.github.com/repos/kubernetes/minikube/pulls{/number}","milestones_url":"https://api.github.com/repos/kubernetes/minikube/milestones{/number}","notifications_url":"https://api.github.com/repos/kubernetes/minikube/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kubernetes/minikube/labels{/name}","releases_url":"https://api.github.com/repos/kubernetes/minikube/releases{/id}","deployments_url":"https://api.github.com/repos/kubernetes/minikube/deployments","created_at":"2016-04-15T22:38:35Z","updated_at":"2016-05-07T06:19:08Z","pushed_at":"2016-05-06T23:30:28Z","git_url":"git://github.com/kubernetes/minikube.git","ssh_url":"git@github.com:kubernetes/minikube.git","clone_url":"https://github.com/kubernetes/minikube.git","svn_url":"https://github.com/kubernetes/minikube","homepage":null,"size":7052,"stargazers_count":22,"watchers_count":22,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":19,"forks":7,"open_issues":19,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes/minikube/pulls/41"},"html":{"href":"https://github.com/kubernetes/minikube/pull/41"},"issue":{"href":"https://api.github.com/repos/kubernetes/minikube/issues/41"},"comments":{"href":"https://api.github.com/repos/kubernetes/minikube/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes/minikube/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes/minikube/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes/minikube/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes/minikube/statuses/18ca13b68926ce9f37de1df59aa7429b34373ed5"}}}}