{"action":"opened","number":2154,"pull_request":{"url":"https://api.github.com/repos/vmware/vic/pulls/2154","id":82927745,"html_url":"https://github.com/vmware/vic/pull/2154","diff_url":"https://github.com/vmware/vic/pull/2154.diff","patch_url":"https://github.com/vmware/vic/pull/2154.patch","issue_url":"https://api.github.com/repos/vmware/vic/issues/2154","number":2154,"state":"open","locked":false,"title":"[full ci] Support pull and run from custom registries","user":{"login":"anchal-agrawal","id":4361620,"avatar_url":"https://avatars.githubusercontent.com/u/4361620?v=3","gravatar_id":"","url":"https://api.github.com/users/anchal-agrawal","html_url":"https://github.com/anchal-agrawal","followers_url":"https://api.github.com/users/anchal-agrawal/followers","following_url":"https://api.github.com/users/anchal-agrawal/following{/other_user}","gists_url":"https://api.github.com/users/anchal-agrawal/gists{/gist_id}","starred_url":"https://api.github.com/users/anchal-agrawal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anchal-agrawal/subscriptions","organizations_url":"https://api.github.com/users/anchal-agrawal/orgs","repos_url":"https://api.github.com/users/anchal-agrawal/repos","events_url":"https://api.github.com/users/anchal-agrawal/events{/privacy}","received_events_url":"https://api.github.com/users/anchal-agrawal/received_events","type":"User","site_admin":false},"body":"Follow-up of #2118 \r\n\r\n* Changes the image cache's `cacheByName` index to pull and run images from private registries.\r\n* Adds an integration test in `1-2-Docker-Pull`\r\n\r\n**Limitation - doesn't yet support pulling and running the same image from different registries.**\r\n\r\nTested VIC output with 3 registry formats:\r\n```\r\n# full docker registry path\r\n$ docker -H 192.168.77.130:2376 --tls run -it registry.hub.docker.com/library/busybox\r\nUnable to find image 'registry.hub.docker.com/library/busybox:latest' locally\r\nPulling from library/busybox\r\na3ed95caeb02: Pull complete \r\n8ddc19f16526: Pull complete \r\nDigest: sha256:65ce39ce3eb0997074a460adfb568d0b9f0f6a4392d97b6035630c9d7bf92402\r\nStatus: Downloaded newer image for library/busybox:latest\r\n/ # exit\r\n\r\n# custom local registry\r\n$ docker -H 192.168.77.130:2376 --tls run -it 192.168.77.128:5000/ubuntu /bin/bash\r\nUnable to find image '192.168.77.128:5000/ubuntu:latest' locally\r\nPulling from ubuntu\r\na3ed95caeb02: Pull complete \r\n2f0243478e1f: Pull complete \r\nd8909ae88469: Pull complete \r\n820f09abed29: Pull complete \r\n01193a8f3d88: Pull complete \r\nDigest: sha256:56c7e84239cf43f15664ee0b7fa6ce9bc19d27c1cf9359daabeaa791f6934e50\r\nStatus: Downloaded newer image for ubuntu:latest\r\nroot@b06bd6eafaa0:/# \r\nroot@b06bd6eafaa0:/# \r\nroot@b06bd6eafaa0:/# exit\r\n\r\n# simple use case\r\n$ docker -H 192.168.77.130:2376 --tls run -d hello-world\r\nUnable to find image 'hello-world:latest' locally\r\nPulling from library/hello-world\r\na3ed95caeb02: Pull complete \r\nc04b14da8d14: Pull complete \r\nDigest: sha256:548e9719abe62684ac7f01eea38cb5b0cf467cfe67c58b83fe87ba96674a4cdd\r\nStatus: Downloaded newer image for library/hello-world:latest\r\nf5ee907137c6bc459ecadaaaf74109f1a3acae7dec1042f9bb0e13a16db94bc7\r\n\r\n$ docker -H 192.168.77.130:2376 --tls images\r\nREPOSITORY                                TAG                 IMAGE ID            CREATED             SIZE\r\n192.168.77.128:5000/ubuntu                latest              7420cee32676        2 weeks ago         126.4 MB\r\nhello-world                               latest              723aa7d39e9d        7 weeks ago         1.848 kB\r\nregistry.hub.docker.com/library/busybox   latest              332de81782ef        9 weeks ago         1.093 MB\r\n```\r\n\r\nPing @jzt @sflxn @corrieb \r\n\r\nAddresses #1638\r\n\r\n","created_at":"2016-08-26T17:54:54Z","updated_at":"2016-08-26T17:54:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7b513d9e74bcfde7c92faf4a9d97f1bb217d72b3","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/vmware/vic/pulls/2154/commits","review_comments_url":"https://api.github.com/repos/vmware/vic/pulls/2154/comments","review_comment_url":"https://api.github.com/repos/vmware/vic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vmware/vic/issues/2154/comments","statuses_url":"https://api.github.com/repos/vmware/vic/statuses/1aaf6de622b726d46d3abf46aa87e6d8f4f978ee","head":{"label":"anchal-agrawal:use-ref","ref":"use-ref","sha":"1aaf6de622b726d46d3abf46aa87e6d8f4f978ee","user":{"login":"anchal-agrawal","id":4361620,"avatar_url":"https://avatars.githubusercontent.com/u/4361620?v=3","gravatar_id":"","url":"https://api.github.com/users/anchal-agrawal","html_url":"https://github.com/anchal-agrawal","followers_url":"https://api.github.com/users/anchal-agrawal/followers","following_url":"https://api.github.com/users/anchal-agrawal/following{/other_user}","gists_url":"https://api.github.com/users/anchal-agrawal/gists{/gist_id}","starred_url":"https://api.github.com/users/anchal-agrawal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anchal-agrawal/subscriptions","organizations_url":"https://api.github.com/users/anchal-agrawal/orgs","repos_url":"https://api.github.com/users/anchal-agrawal/repos","events_url":"https://api.github.com/users/anchal-agrawal/events{/privacy}","received_events_url":"https://api.github.com/users/anchal-agrawal/received_events","type":"User","site_admin":false},"repo":{"id":55529805,"name":"vic","full_name":"anchal-agrawal/vic","owner":{"login":"anchal-agrawal","id":4361620,"avatar_url":"https://avatars.githubusercontent.com/u/4361620?v=3","gravatar_id":"","url":"https://api.github.com/users/anchal-agrawal","html_url":"https://github.com/anchal-agrawal","followers_url":"https://api.github.com/users/anchal-agrawal/followers","following_url":"https://api.github.com/users/anchal-agrawal/following{/other_user}","gists_url":"https://api.github.com/users/anchal-agrawal/gists{/gist_id}","starred_url":"https://api.github.com/users/anchal-agrawal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anchal-agrawal/subscriptions","organizations_url":"https://api.github.com/users/anchal-agrawal/orgs","repos_url":"https://api.github.com/users/anchal-agrawal/repos","events_url":"https://api.github.com/users/anchal-agrawal/events{/privacy}","received_events_url":"https://api.github.com/users/anchal-agrawal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/anchal-agrawal/vic","description":"Integrated containers on vSphere","fork":true,"url":"https://api.github.com/repos/anchal-agrawal/vic","forks_url":"https://api.github.com/repos/anchal-agrawal/vic/forks","keys_url":"https://api.github.com/repos/anchal-agrawal/vic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anchal-agrawal/vic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anchal-agrawal/vic/teams","hooks_url":"https://api.github.com/repos/anchal-agrawal/vic/hooks","issue_events_url":"https://api.github.com/repos/anchal-agrawal/vic/issues/events{/number}","events_url":"https://api.github.com/repos/anchal-agrawal/vic/events","assignees_url":"https://api.github.com/repos/anchal-agrawal/vic/assignees{/user}","branches_url":"https://api.github.com/repos/anchal-agrawal/vic/branches{/branch}","tags_url":"https://api.github.com/repos/anchal-agrawal/vic/tags","blobs_url":"https://api.github.com/repos/anchal-agrawal/vic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anchal-agrawal/vic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anchal-agrawal/vic/git/refs{/sha}","trees_url":"https://api.github.com/repos/anchal-agrawal/vic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anchal-agrawal/vic/statuses/{sha}","languages_url":"https://api.github.com/repos/anchal-agrawal/vic/languages","stargazers_url":"https://api.github.com/repos/anchal-agrawal/vic/stargazers","contributors_url":"https://api.github.com/repos/anchal-agrawal/vic/contributors","subscribers_url":"https://api.github.com/repos/anchal-agrawal/vic/subscribers","subscription_url":"https://api.github.com/repos/anchal-agrawal/vic/subscription","commits_url":"https://api.github.com/repos/anchal-agrawal/vic/commits{/sha}","git_commits_url":"https://api.github.com/repos/anchal-agrawal/vic/git/commits{/sha}","comments_url":"https://api.github.com/repos/anchal-agrawal/vic/comments{/number}","issue_comment_url":"https://api.github.com/repos/anchal-agrawal/vic/issues/comments{/number}","contents_url":"https://api.github.com/repos/anchal-agrawal/vic/contents/{+path}","compare_url":"https://api.github.com/repos/anchal-agrawal/vic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anchal-agrawal/vic/merges","archive_url":"https://api.github.com/repos/anchal-agrawal/vic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anchal-agrawal/vic/downloads","issues_url":"https://api.github.com/repos/anchal-agrawal/vic/issues{/number}","pulls_url":"https://api.github.com/repos/anchal-agrawal/vic/pulls{/number}","milestones_url":"https://api.github.com/repos/anchal-agrawal/vic/milestones{/number}","notifications_url":"https://api.github.com/repos/anchal-agrawal/vic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anchal-agrawal/vic/labels{/name}","releases_url":"https://api.github.com/repos/anchal-agrawal/vic/releases{/id}","deployments_url":"https://api.github.com/repos/anchal-agrawal/vic/deployments","created_at":"2016-04-05T17:53:37Z","updated_at":"2016-04-05T17:53:38Z","pushed_at":"2016-08-26T17:48:40Z","git_url":"git://github.com/anchal-agrawal/vic.git","ssh_url":"git@github.com:anchal-agrawal/vic.git","clone_url":"https://github.com/anchal-agrawal/vic.git","svn_url":"https://github.com/anchal-agrawal/vic","homepage":null,"size":28394,"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":"vmware:master","ref":"master","sha":"f5cf12b48aa09f16df0acf68d1ca81b2181999aa","user":{"login":"vmware","id":473334,"avatar_url":"https://avatars.githubusercontent.com/u/473334?v=3","gravatar_id":"","url":"https://api.github.com/users/vmware","html_url":"https://github.com/vmware","followers_url":"https://api.github.com/users/vmware/followers","following_url":"https://api.github.com/users/vmware/following{/other_user}","gists_url":"https://api.github.com/users/vmware/gists{/gist_id}","starred_url":"https://api.github.com/users/vmware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmware/subscriptions","organizations_url":"https://api.github.com/users/vmware/orgs","repos_url":"https://api.github.com/users/vmware/repos","events_url":"https://api.github.com/users/vmware/events{/privacy}","received_events_url":"https://api.github.com/users/vmware/received_events","type":"Organization","site_admin":false},"repo":{"id":49597898,"name":"vic","full_name":"vmware/vic","owner":{"login":"vmware","id":473334,"avatar_url":"https://avatars.githubusercontent.com/u/473334?v=3","gravatar_id":"","url":"https://api.github.com/users/vmware","html_url":"https://github.com/vmware","followers_url":"https://api.github.com/users/vmware/followers","following_url":"https://api.github.com/users/vmware/following{/other_user}","gists_url":"https://api.github.com/users/vmware/gists{/gist_id}","starred_url":"https://api.github.com/users/vmware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmware/subscriptions","organizations_url":"https://api.github.com/users/vmware/orgs","repos_url":"https://api.github.com/users/vmware/repos","events_url":"https://api.github.com/users/vmware/events{/privacy}","received_events_url":"https://api.github.com/users/vmware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vmware/vic","description":"Integrated containers on vSphere","fork":false,"url":"https://api.github.com/repos/vmware/vic","forks_url":"https://api.github.com/repos/vmware/vic/forks","keys_url":"https://api.github.com/repos/vmware/vic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vmware/vic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vmware/vic/teams","hooks_url":"https://api.github.com/repos/vmware/vic/hooks","issue_events_url":"https://api.github.com/repos/vmware/vic/issues/events{/number}","events_url":"https://api.github.com/repos/vmware/vic/events","assignees_url":"https://api.github.com/repos/vmware/vic/assignees{/user}","branches_url":"https://api.github.com/repos/vmware/vic/branches{/branch}","tags_url":"https://api.github.com/repos/vmware/vic/tags","blobs_url":"https://api.github.com/repos/vmware/vic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vmware/vic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vmware/vic/git/refs{/sha}","trees_url":"https://api.github.com/repos/vmware/vic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vmware/vic/statuses/{sha}","languages_url":"https://api.github.com/repos/vmware/vic/languages","stargazers_url":"https://api.github.com/repos/vmware/vic/stargazers","contributors_url":"https://api.github.com/repos/vmware/vic/contributors","subscribers_url":"https://api.github.com/repos/vmware/vic/subscribers","subscription_url":"https://api.github.com/repos/vmware/vic/subscription","commits_url":"https://api.github.com/repos/vmware/vic/commits{/sha}","git_commits_url":"https://api.github.com/repos/vmware/vic/git/commits{/sha}","comments_url":"https://api.github.com/repos/vmware/vic/comments{/number}","issue_comment_url":"https://api.github.com/repos/vmware/vic/issues/comments{/number}","contents_url":"https://api.github.com/repos/vmware/vic/contents/{+path}","compare_url":"https://api.github.com/repos/vmware/vic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vmware/vic/merges","archive_url":"https://api.github.com/repos/vmware/vic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vmware/vic/downloads","issues_url":"https://api.github.com/repos/vmware/vic/issues{/number}","pulls_url":"https://api.github.com/repos/vmware/vic/pulls{/number}","milestones_url":"https://api.github.com/repos/vmware/vic/milestones{/number}","notifications_url":"https://api.github.com/repos/vmware/vic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vmware/vic/labels{/name}","releases_url":"https://api.github.com/repos/vmware/vic/releases{/id}","deployments_url":"https://api.github.com/repos/vmware/vic/deployments","created_at":"2016-01-13T19:53:57Z","updated_at":"2016-08-24T16:09:39Z","pushed_at":"2016-08-26T17:54:54Z","git_url":"git://github.com/vmware/vic.git","ssh_url":"git@github.com:vmware/vic.git","clone_url":"https://github.com/vmware/vic.git","svn_url":"https://github.com/vmware/vic","homepage":null,"size":77421,"stargazers_count":114,"watchers_count":114,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":43,"mirror_url":null,"open_issues_count":516,"forks":43,"open_issues":516,"watchers":114,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vmware/vic/pulls/2154"},"html":{"href":"https://github.com/vmware/vic/pull/2154"},"issue":{"href":"https://api.github.com/repos/vmware/vic/issues/2154"},"comments":{"href":"https://api.github.com/repos/vmware/vic/issues/2154/comments"},"review_comments":{"href":"https://api.github.com/repos/vmware/vic/pulls/2154/comments"},"review_comment":{"href":"https://api.github.com/repos/vmware/vic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vmware/vic/pulls/2154/commits"},"statuses":{"href":"https://api.github.com/repos/vmware/vic/statuses/1aaf6de622b726d46d3abf46aa87e6d8f4f978ee"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":43,"deletions":31,"changed_files":6}}
{"actor":{"display_login":"anchal-agrawal"}}