{"action":"created","issue":{"url":"https://api.github.com/repos/mrunalp/ocid/issues/12","repository_url":"https://api.github.com/repos/mrunalp/ocid","labels_url":"https://api.github.com/repos/mrunalp/ocid/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/mrunalp/ocid/issues/12/comments","events_url":"https://api.github.com/repos/mrunalp/ocid/issues/12/events","html_url":"https://github.com/mrunalp/ocid/pull/12","id":166529718,"number":12,"title":"implement raw pullimage functionality","user":{"login":"runcom","id":849915,"avatar_url":"https://avatars.githubusercontent.com/u/849915?v=3","gravatar_id":"","url":"https://api.github.com/users/runcom","html_url":"https://github.com/runcom","followers_url":"https://api.github.com/users/runcom/followers","following_url":"https://api.github.com/users/runcom/following{/other_user}","gists_url":"https://api.github.com/users/runcom/gists{/gist_id}","starred_url":"https://api.github.com/users/runcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runcom/subscriptions","organizations_url":"https://api.github.com/users/runcom/orgs","repos_url":"https://api.github.com/users/runcom/repos","events_url":"https://api.github.com/users/runcom/events{/privacy}","received_events_url":"https://api.github.com/users/runcom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-20T08:45:10Z","updated_at":"2016-07-20T16:30:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mrunalp/ocid/pulls/12","html_url":"https://github.com/mrunalp/ocid/pull/12","diff_url":"https://github.com/mrunalp/ocid/pull/12.diff","patch_url":"https://github.com/mrunalp/ocid/pull/12.patch"},"body":"Implements a basic and raw pull image functionality (that works though). I left a lot of TODO(s) in the code just to remind us what still needs to be fixed/changed - mainly containers/storage integration and some other stuff with containers/image.\r\n\r\n```sh\r\n# make sure /var/lib/ocid exists and you can write there (well, ocid can write there)\r\n\r\n$ ./ocid &\r\n\r\n# we need a way from k8s to tell us more about the image\r\n# in ocid we can just assume is a docker:// image always for now\r\n# btw, I put this on the client just to show this off\r\n\r\n# with the above I mean \"docker://\" should be provided by the Kubelet API\r\n$ ./ocic pullimage docker://busybox\r\n\r\n$ ls -l /var/lib/ocid/images/ \r\ntotal 4\r\ndrwxr-xr-x. 2 amurdaca amurdaca 4096 Jul 20 10:42 busybox:latest\r\n\r\n$ ls -l /var/lib/ocid/images/busybox:latest \r\ntotal 660\r\n-rw-rw-r--. 1 amurdaca amurdaca   1459 Jul 20 10:42 2b8fd9751c4c0f5dd266fcae00707e67a2545ef34f9a29354585f93dac906749.tar\r\n-rw-rw-r--. 1 amurdaca amurdaca 667590 Jul 20 10:42 8ddc19f16526912237dd8af81971d5e4dd0587907234be2b83e249518d5b673f.tar\r\n-rw-r--r--. 1 amurdaca amurdaca    505 Jul 20 10:42 manifest.json\r\n```\r\n\r\nSigned-off-by: Antonio Murdaca <runcom@redhat.com>"},"comment":{"url":"https://api.github.com/repos/mrunalp/ocid/issues/comments/234004029","html_url":"https://github.com/mrunalp/ocid/pull/12#issuecomment-234004029","issue_url":"https://api.github.com/repos/mrunalp/ocid/issues/12","id":234004029,"user":{"login":"mtrmac","id":7052838,"avatar_url":"https://avatars.githubusercontent.com/u/7052838?v=3","gravatar_id":"","url":"https://api.github.com/users/mtrmac","html_url":"https://github.com/mtrmac","followers_url":"https://api.github.com/users/mtrmac/followers","following_url":"https://api.github.com/users/mtrmac/following{/other_user}","gists_url":"https://api.github.com/users/mtrmac/gists{/gist_id}","starred_url":"https://api.github.com/users/mtrmac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtrmac/subscriptions","organizations_url":"https://api.github.com/users/mtrmac/orgs","repos_url":"https://api.github.com/users/mtrmac/repos","events_url":"https://api.github.com/users/mtrmac/events{/privacy}","received_events_url":"https://api.github.com/users/mtrmac/received_events","type":"User","site_admin":false},"created_at":"2016-07-20T16:30:12Z","updated_at":"2016-07-20T16:30:12Z","body":"… all of which will require building a bit more infrastructure in `containers/image`, like the `ImageContext` and `context.Context`. So this PR does work as a POC / prototype implementation, I just hope that it is not the final state."}}
{"actor":{"display_login":"mtrmac"}}