{"action":"opened","number":1310,"pull_request":{"url":"https://api.github.com/repos/docker/swarm/pulls/1310","id":47982876,"html_url":"https://github.com/docker/swarm/pull/1310","diff_url":"https://github.com/docker/swarm/pull/1310.diff","patch_url":"https://github.com/docker/swarm/pull/1310.patch","issue_url":"https://api.github.com/repos/docker/swarm/issues/1310","number":1310,"state":"open","locked":false,"title":"Affinity support in image building","user":{"login":"pwnall","id":11460,"avatar_url":"https://avatars.githubusercontent.com/u/11460?v=3","gravatar_id":"","url":"https://api.github.com/users/pwnall","html_url":"https://github.com/pwnall","followers_url":"https://api.github.com/users/pwnall/followers","following_url":"https://api.github.com/users/pwnall/following{/other_user}","gists_url":"https://api.github.com/users/pwnall/gists{/gist_id}","starred_url":"https://api.github.com/users/pwnall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwnall/subscriptions","organizations_url":"https://api.github.com/users/pwnall/orgs","repos_url":"https://api.github.com/users/pwnall/repos","events_url":"https://api.github.com/users/pwnall/events{/privacy}","received_events_url":"https://api.github.com/users/pwnall/received_events","type":"User","site_admin":false},"body":"This is a proof-of-concept implementation for fixing #1282 supporting scheduler options in image building. The code pulls the options from `buildargs`, similarly to how container creation pulls options from the container's environment variables.\r\n\r\nMy code assumes that the following PR will get merged into the dockerclient repository. After that happens, Godeps will have to be updated.\r\nhttps://github.com/samalba/dockerclient/pull/177\r\n\r\nI'm looking forward to your feedback. I've only seen positive response on #1282, so I hope you're OK with overloading buildvars.","created_at":"2015-10-17T08:56:31Z","updated_at":"2015-10-17T08:56:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b0ae99a870961f0b48aa19d060349057c185fe18","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/docker/swarm/pulls/1310/commits","review_comments_url":"https://api.github.com/repos/docker/swarm/pulls/1310/comments","review_comment_url":"https://api.github.com/repos/docker/swarm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/swarm/issues/1310/comments","statuses_url":"https://api.github.com/repos/docker/swarm/statuses/014ac9378a1eac4c08b525c7f51b3053e33f483e","head":{"label":"pwnall:image_affinity","ref":"image_affinity","sha":"014ac9378a1eac4c08b525c7f51b3053e33f483e","user":{"login":"pwnall","id":11460,"avatar_url":"https://avatars.githubusercontent.com/u/11460?v=3","gravatar_id":"","url":"https://api.github.com/users/pwnall","html_url":"https://github.com/pwnall","followers_url":"https://api.github.com/users/pwnall/followers","following_url":"https://api.github.com/users/pwnall/following{/other_user}","gists_url":"https://api.github.com/users/pwnall/gists{/gist_id}","starred_url":"https://api.github.com/users/pwnall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwnall/subscriptions","organizations_url":"https://api.github.com/users/pwnall/orgs","repos_url":"https://api.github.com/users/pwnall/repos","events_url":"https://api.github.com/users/pwnall/events{/privacy}","received_events_url":"https://api.github.com/users/pwnall/received_events","type":"User","site_admin":false},"repo":{"id":43920450,"name":"swarm","full_name":"pwnall/swarm","owner":{"login":"pwnall","id":11460,"avatar_url":"https://avatars.githubusercontent.com/u/11460?v=3","gravatar_id":"","url":"https://api.github.com/users/pwnall","html_url":"https://github.com/pwnall","followers_url":"https://api.github.com/users/pwnall/followers","following_url":"https://api.github.com/users/pwnall/following{/other_user}","gists_url":"https://api.github.com/users/pwnall/gists{/gist_id}","starred_url":"https://api.github.com/users/pwnall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwnall/subscriptions","organizations_url":"https://api.github.com/users/pwnall/orgs","repos_url":"https://api.github.com/users/pwnall/repos","events_url":"https://api.github.com/users/pwnall/events{/privacy}","received_events_url":"https://api.github.com/users/pwnall/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pwnall/swarm","description":"Swarm: a Docker-native clustering system","fork":true,"url":"https://api.github.com/repos/pwnall/swarm","forks_url":"https://api.github.com/repos/pwnall/swarm/forks","keys_url":"https://api.github.com/repos/pwnall/swarm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pwnall/swarm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pwnall/swarm/teams","hooks_url":"https://api.github.com/repos/pwnall/swarm/hooks","issue_events_url":"https://api.github.com/repos/pwnall/swarm/issues/events{/number}","events_url":"https://api.github.com/repos/pwnall/swarm/events","assignees_url":"https://api.github.com/repos/pwnall/swarm/assignees{/user}","branches_url":"https://api.github.com/repos/pwnall/swarm/branches{/branch}","tags_url":"https://api.github.com/repos/pwnall/swarm/tags","blobs_url":"https://api.github.com/repos/pwnall/swarm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pwnall/swarm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pwnall/swarm/git/refs{/sha}","trees_url":"https://api.github.com/repos/pwnall/swarm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pwnall/swarm/statuses/{sha}","languages_url":"https://api.github.com/repos/pwnall/swarm/languages","stargazers_url":"https://api.github.com/repos/pwnall/swarm/stargazers","contributors_url":"https://api.github.com/repos/pwnall/swarm/contributors","subscribers_url":"https://api.github.com/repos/pwnall/swarm/subscribers","subscription_url":"https://api.github.com/repos/pwnall/swarm/subscription","commits_url":"https://api.github.com/repos/pwnall/swarm/commits{/sha}","git_commits_url":"https://api.github.com/repos/pwnall/swarm/git/commits{/sha}","comments_url":"https://api.github.com/repos/pwnall/swarm/comments{/number}","issue_comment_url":"https://api.github.com/repos/pwnall/swarm/issues/comments{/number}","contents_url":"https://api.github.com/repos/pwnall/swarm/contents/{+path}","compare_url":"https://api.github.com/repos/pwnall/swarm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pwnall/swarm/merges","archive_url":"https://api.github.com/repos/pwnall/swarm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pwnall/swarm/downloads","issues_url":"https://api.github.com/repos/pwnall/swarm/issues{/number}","pulls_url":"https://api.github.com/repos/pwnall/swarm/pulls{/number}","milestones_url":"https://api.github.com/repos/pwnall/swarm/milestones{/number}","notifications_url":"https://api.github.com/repos/pwnall/swarm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pwnall/swarm/labels{/name}","releases_url":"https://api.github.com/repos/pwnall/swarm/releases{/id}","created_at":"2015-10-08T22:51:18Z","updated_at":"2015-10-08T22:51:20Z","pushed_at":"2015-10-17T08:47:57Z","git_url":"git://github.com/pwnall/swarm.git","ssh_url":"git@github.com:pwnall/swarm.git","clone_url":"https://github.com/pwnall/swarm.git","svn_url":"https://github.com/pwnall/swarm","homepage":"","size":6397,"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":"docker:master","ref":"master","sha":"894d1abd639eedb8234caf63fbc458a6791563bb","user":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"repo":{"id":19360616,"name":"swarm","full_name":"docker/swarm","owner":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker/swarm","description":"Swarm: a Docker-native clustering system","fork":false,"url":"https://api.github.com/repos/docker/swarm","forks_url":"https://api.github.com/repos/docker/swarm/forks","keys_url":"https://api.github.com/repos/docker/swarm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker/swarm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker/swarm/teams","hooks_url":"https://api.github.com/repos/docker/swarm/hooks","issue_events_url":"https://api.github.com/repos/docker/swarm/issues/events{/number}","events_url":"https://api.github.com/repos/docker/swarm/events","assignees_url":"https://api.github.com/repos/docker/swarm/assignees{/user}","branches_url":"https://api.github.com/repos/docker/swarm/branches{/branch}","tags_url":"https://api.github.com/repos/docker/swarm/tags","blobs_url":"https://api.github.com/repos/docker/swarm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker/swarm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker/swarm/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker/swarm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker/swarm/statuses/{sha}","languages_url":"https://api.github.com/repos/docker/swarm/languages","stargazers_url":"https://api.github.com/repos/docker/swarm/stargazers","contributors_url":"https://api.github.com/repos/docker/swarm/contributors","subscribers_url":"https://api.github.com/repos/docker/swarm/subscribers","subscription_url":"https://api.github.com/repos/docker/swarm/subscription","commits_url":"https://api.github.com/repos/docker/swarm/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker/swarm/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker/swarm/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker/swarm/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker/swarm/contents/{+path}","compare_url":"https://api.github.com/repos/docker/swarm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker/swarm/merges","archive_url":"https://api.github.com/repos/docker/swarm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker/swarm/downloads","issues_url":"https://api.github.com/repos/docker/swarm/issues{/number}","pulls_url":"https://api.github.com/repos/docker/swarm/pulls{/number}","milestones_url":"https://api.github.com/repos/docker/swarm/milestones{/number}","notifications_url":"https://api.github.com/repos/docker/swarm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker/swarm/labels{/name}","releases_url":"https://api.github.com/repos/docker/swarm/releases{/id}","created_at":"2014-05-01T23:15:17Z","updated_at":"2015-10-17T00:25:18Z","pushed_at":"2015-10-17T08:56:34Z","git_url":"git://github.com/docker/swarm.git","ssh_url":"git@github.com:docker/swarm.git","clone_url":"https://github.com/docker/swarm.git","svn_url":"https://github.com/docker/swarm","homepage":"","size":39825,"stargazers_count":3109,"watchers_count":3109,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":454,"mirror_url":null,"open_issues_count":132,"forks":454,"open_issues":132,"watchers":3109,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/swarm/pulls/1310"},"html":{"href":"https://github.com/docker/swarm/pull/1310"},"issue":{"href":"https://api.github.com/repos/docker/swarm/issues/1310"},"comments":{"href":"https://api.github.com/repos/docker/swarm/issues/1310/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/swarm/pulls/1310/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/swarm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/swarm/pulls/1310/commits"},"statuses":{"href":"https://api.github.com/repos/docker/swarm/statuses/014ac9378a1eac4c08b525c7f51b3053e33f483e"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":62,"deletions":2,"changed_files":4}}