{"action":"created","comment":{"url":"https://api.github.com/repos/kubernetes/test-infra/pulls/comments/136213542","pull_request_review_id":59720756,"id":136213542,"diff_hunk":"@@ -0,0 +1,26 @@\n+#!/bin/sh\n+# Copyright 2017 The Kubernetes Authors.\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+#     http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+\n+# NOTE: use like: ./planter.sh bazel build //cmd/...\n+# NOTE: build kubernetes with: <path to test-infra>/planter.sh make bazel-build\n+set -x","path":"planter/planter.sh","position":18,"original_position":18,"commit_id":"5fd58f987be44aa6a6cada3bd53f38feae6ddf4f","original_commit_id":"5fd58f987be44aa6a6cada3bd53f38feae6ddf4f","user":{"login":"ixdy","id":8061296,"avatar_url":"https://avatars3.githubusercontent.com/u/8061296?v=4","gravatar_id":"","url":"https://api.github.com/users/ixdy","html_url":"https://github.com/ixdy","followers_url":"https://api.github.com/users/ixdy/followers","following_url":"https://api.github.com/users/ixdy/following{/other_user}","gists_url":"https://api.github.com/users/ixdy/gists{/gist_id}","starred_url":"https://api.github.com/users/ixdy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ixdy/subscriptions","organizations_url":"https://api.github.com/users/ixdy/orgs","repos_url":"https://api.github.com/users/ixdy/repos","events_url":"https://api.github.com/users/ixdy/events{/privacy}","received_events_url":"https://api.github.com/users/ixdy/received_events","type":"User","site_admin":false},"body":"we probably don't need this?\r\n\r\nmost of our scripts do usually set errexit, pipefail, and nounset though.","created_at":"2017-08-30T23:19:09Z","updated_at":"2017-08-30T23:24:38Z","html_url":"https://github.com/kubernetes/test-infra/pull/4169#discussion_r136213542","pull_request_url":"https://api.github.com/repos/kubernetes/test-infra/pulls/4169","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/kubernetes/test-infra/pulls/comments/136213542"},"html":{"href":"https://github.com/kubernetes/test-infra/pull/4169#discussion_r136213542"},"pull_request":{"href":"https://api.github.com/repos/kubernetes/test-infra/pulls/4169"}}},"pull_request":{"url":"https://api.github.com/repos/kubernetes/test-infra/pulls/4169","id":137343212,"html_url":"https://github.com/kubernetes/test-infra/pull/4169","diff_url":"https://github.com/kubernetes/test-infra/pull/4169.diff","patch_url":"https://github.com/kubernetes/test-infra/pull/4169.patch","issue_url":"https://api.github.com/repos/kubernetes/test-infra/issues/4169","number":4169,"state":"open","locked":false,"title":"Add \"planter\" for local bazel development in docker","user":{"login":"BenTheElder","id":917931,"avatar_url":"https://avatars2.githubusercontent.com/u/917931?v=4","gravatar_id":"","url":"https://api.github.com/users/BenTheElder","html_url":"https://github.com/BenTheElder","followers_url":"https://api.github.com/users/BenTheElder/followers","following_url":"https://api.github.com/users/BenTheElder/following{/other_user}","gists_url":"https://api.github.com/users/BenTheElder/gists{/gist_id}","starred_url":"https://api.github.com/users/BenTheElder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenTheElder/subscriptions","organizations_url":"https://api.github.com/users/BenTheElder/orgs","repos_url":"https://api.github.com/users/BenTheElder/repos","events_url":"https://api.github.com/users/BenTheElder/events{/privacy}","received_events_url":"https://api.github.com/users/BenTheElder/received_events","type":"User","site_admin":false},"body":"This adds tooling to allow using bazel in docker for building `kubernetes/kubernetes` and `kubernetes/test-infra`, possibly others. This container is run unprivileged as the host user and uses the same directories as normal local bazel usage.\r\n\r\nTODO:\r\n - [x] Create minimal docker image and wrapper script for local bazel development\r\n - [x] remove sandbox disabling for go_genrule once https://github.com/kubernetes/kubernetes/pull/51219 is in\r\n - [x] Set up image publishing\r\n - [ ] Fix test-infra `test //jenkins:bootstrap_test ` failure\r\n - [x] Better name(s) ?\r\n - [x] Document usage\r\n","created_at":"2017-08-23T23:59:28Z","updated_at":"2017-08-30T23:24:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d38acbee315d75149ff06d3b1d680f30ab6b035c","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/kubernetes/test-infra/pulls/4169/commits","review_comments_url":"https://api.github.com/repos/kubernetes/test-infra/pulls/4169/comments","review_comment_url":"https://api.github.com/repos/kubernetes/test-infra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes/test-infra/issues/4169/comments","statuses_url":"https://api.github.com/repos/kubernetes/test-infra/statuses/5fd58f987be44aa6a6cada3bd53f38feae6ddf4f","head":{"label":"BenTheElder:k8s_bazel_dev_image","ref":"k8s_bazel_dev_image","sha":"5fd58f987be44aa6a6cada3bd53f38feae6ddf4f","user":{"login":"BenTheElder","id":917931,"avatar_url":"https://avatars2.githubusercontent.com/u/917931?v=4","gravatar_id":"","url":"https://api.github.com/users/BenTheElder","html_url":"https://github.com/BenTheElder","followers_url":"https://api.github.com/users/BenTheElder/followers","following_url":"https://api.github.com/users/BenTheElder/following{/other_user}","gists_url":"https://api.github.com/users/BenTheElder/gists{/gist_id}","starred_url":"https://api.github.com/users/BenTheElder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenTheElder/subscriptions","organizations_url":"https://api.github.com/users/BenTheElder/orgs","repos_url":"https://api.github.com/users/BenTheElder/repos","events_url":"https://api.github.com/users/BenTheElder/events{/privacy}","received_events_url":"https://api.github.com/users/BenTheElder/received_events","type":"User","site_admin":false},"repo":{"id":97753110,"name":"test-infra","full_name":"BenTheElder/test-infra","owner":{"login":"BenTheElder","id":917931,"avatar_url":"https://avatars2.githubusercontent.com/u/917931?v=4","gravatar_id":"","url":"https://api.github.com/users/BenTheElder","html_url":"https://github.com/BenTheElder","followers_url":"https://api.github.com/users/BenTheElder/followers","following_url":"https://api.github.com/users/BenTheElder/following{/other_user}","gists_url":"https://api.github.com/users/BenTheElder/gists{/gist_id}","starred_url":"https://api.github.com/users/BenTheElder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenTheElder/subscriptions","organizations_url":"https://api.github.com/users/BenTheElder/orgs","repos_url":"https://api.github.com/users/BenTheElder/repos","events_url":"https://api.github.com/users/BenTheElder/events{/privacy}","received_events_url":"https://api.github.com/users/BenTheElder/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BenTheElder/test-infra","description":"Test infrastructure for the Kubernetes project.","fork":true,"url":"https://api.github.com/repos/BenTheElder/test-infra","forks_url":"https://api.github.com/repos/BenTheElder/test-infra/forks","keys_url":"https://api.github.com/repos/BenTheElder/test-infra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BenTheElder/test-infra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BenTheElder/test-infra/teams","hooks_url":"https://api.github.com/repos/BenTheElder/test-infra/hooks","issue_events_url":"https://api.github.com/repos/BenTheElder/test-infra/issues/events{/number}","events_url":"https://api.github.com/repos/BenTheElder/test-infra/events","assignees_url":"https://api.github.com/repos/BenTheElder/test-infra/assignees{/user}","branches_url":"https://api.github.com/repos/BenTheElder/test-infra/branches{/branch}","tags_url":"https://api.github.com/repos/BenTheElder/test-infra/tags","blobs_url":"https://api.github.com/repos/BenTheElder/test-infra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BenTheElder/test-infra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BenTheElder/test-infra/git/refs{/sha}","trees_url":"https://api.github.com/repos/BenTheElder/test-infra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BenTheElder/test-infra/statuses/{sha}","languages_url":"https://api.github.com/repos/BenTheElder/test-infra/languages","stargazers_url":"https://api.github.com/repos/BenTheElder/test-infra/stargazers","contributors_url":"https://api.github.com/repos/BenTheElder/test-infra/contributors","subscribers_url":"https://api.github.com/repos/BenTheElder/test-infra/subscribers","subscription_url":"https://api.github.com/repos/BenTheElder/test-infra/subscription","commits_url":"https://api.github.com/repos/BenTheElder/test-infra/commits{/sha}","git_commits_url":"https://api.github.com/repos/BenTheElder/test-infra/git/commits{/sha}","comments_url":"https://api.github.com/repos/BenTheElder/test-infra/comments{/number}","issue_comment_url":"https://api.github.com/repos/BenTheElder/test-infra/issues/comments{/number}","contents_url":"https://api.github.com/repos/BenTheElder/test-infra/contents/{+path}","compare_url":"https://api.github.com/repos/BenTheElder/test-infra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BenTheElder/test-infra/merges","archive_url":"https://api.github.com/repos/BenTheElder/test-infra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BenTheElder/test-infra/downloads","issues_url":"https://api.github.com/repos/BenTheElder/test-infra/issues{/number}","pulls_url":"https://api.github.com/repos/BenTheElder/test-infra/pulls{/number}","milestones_url":"https://api.github.com/repos/BenTheElder/test-infra/milestones{/number}","notifications_url":"https://api.github.com/repos/BenTheElder/test-infra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BenTheElder/test-infra/labels{/name}","releases_url":"https://api.github.com/repos/BenTheElder/test-infra/releases{/id}","deployments_url":"https://api.github.com/repos/BenTheElder/test-infra/deployments","created_at":"2017-07-19T19:21:39Z","updated_at":"2017-07-19T19:21:43Z","pushed_at":"2017-08-30T21:29:44Z","git_url":"git://github.com/BenTheElder/test-infra.git","ssh_url":"git@github.com:BenTheElder/test-infra.git","clone_url":"https://github.com/BenTheElder/test-infra.git","svn_url":"https://github.com/BenTheElder/test-infra","homepage":null,"size":24792,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"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":0,"default_branch":"master"}},"base":{"label":"kubernetes:master","ref":"master","sha":"d46236fc02f005c31d7d034cde163c0872e21e21","user":{"login":"kubernetes","id":13629408,"avatar_url":"https://avatars2.githubusercontent.com/u/13629408?v=4","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":57333709,"name":"test-infra","full_name":"kubernetes/test-infra","owner":{"login":"kubernetes","id":13629408,"avatar_url":"https://avatars2.githubusercontent.com/u/13629408?v=4","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/test-infra","description":"Test infrastructure for the Kubernetes project.","fork":false,"url":"https://api.github.com/repos/kubernetes/test-infra","forks_url":"https://api.github.com/repos/kubernetes/test-infra/forks","keys_url":"https://api.github.com/repos/kubernetes/test-infra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kubernetes/test-infra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kubernetes/test-infra/teams","hooks_url":"https://api.github.com/repos/kubernetes/test-infra/hooks","issue_events_url":"https://api.github.com/repos/kubernetes/test-infra/issues/events{/number}","events_url":"https://api.github.com/repos/kubernetes/test-infra/events","assignees_url":"https://api.github.com/repos/kubernetes/test-infra/assignees{/user}","branches_url":"https://api.github.com/repos/kubernetes/test-infra/branches{/branch}","tags_url":"https://api.github.com/repos/kubernetes/test-infra/tags","blobs_url":"https://api.github.com/repos/kubernetes/test-infra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kubernetes/test-infra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kubernetes/test-infra/git/refs{/sha}","trees_url":"https://api.github.com/repos/kubernetes/test-infra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kubernetes/test-infra/statuses/{sha}","languages_url":"https://api.github.com/repos/kubernetes/test-infra/languages","stargazers_url":"https://api.github.com/repos/kubernetes/test-infra/stargazers","contributors_url":"https://api.github.com/repos/kubernetes/test-infra/contributors","subscribers_url":"https://api.github.com/repos/kubernetes/test-infra/subscribers","subscription_url":"https://api.github.com/repos/kubernetes/test-infra/subscription","commits_url":"https://api.github.com/repos/kubernetes/test-infra/commits{/sha}","git_commits_url":"https://api.github.com/repos/kubernetes/test-infra/git/commits{/sha}","comments_url":"https://api.github.com/repos/kubernetes/test-infra/comments{/number}","issue_comment_url":"https://api.github.com/repos/kubernetes/test-infra/issues/comments{/number}","contents_url":"https://api.github.com/repos/kubernetes/test-infra/contents/{+path}","compare_url":"https://api.github.com/repos/kubernetes/test-infra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kubernetes/test-infra/merges","archive_url":"https://api.github.com/repos/kubernetes/test-infra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kubernetes/test-infra/downloads","issues_url":"https://api.github.com/repos/kubernetes/test-infra/issues{/number}","pulls_url":"https://api.github.com/repos/kubernetes/test-infra/pulls{/number}","milestones_url":"https://api.github.com/repos/kubernetes/test-infra/milestones{/number}","notifications_url":"https://api.github.com/repos/kubernetes/test-infra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kubernetes/test-infra/labels{/name}","releases_url":"https://api.github.com/repos/kubernetes/test-infra/releases{/id}","deployments_url":"https://api.github.com/repos/kubernetes/test-infra/deployments","created_at":"2016-04-28T21:05:35Z","updated_at":"2017-08-29T14:48:49Z","pushed_at":"2017-08-30T23:07:35Z","git_url":"git://github.com/kubernetes/test-infra.git","ssh_url":"git@github.com:kubernetes/test-infra.git","clone_url":"https://github.com/kubernetes/test-infra.git","svn_url":"https://github.com/kubernetes/test-infra","homepage":null,"size":25641,"stargazers_count":128,"watchers_count":128,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":197,"mirror_url":null,"open_issues_count":292,"forks":197,"open_issues":292,"watchers":128,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes/test-infra/pulls/4169"},"html":{"href":"https://github.com/kubernetes/test-infra/pull/4169"},"issue":{"href":"https://api.github.com/repos/kubernetes/test-infra/issues/4169"},"comments":{"href":"https://api.github.com/repos/kubernetes/test-infra/issues/4169/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes/test-infra/pulls/4169/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes/test-infra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes/test-infra/pulls/4169/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes/test-infra/statuses/5fd58f987be44aa6a6cada3bd53f38feae6ddf4f"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"ixdy"}}