{"action":"created","comment":{"url":"https://api.github.com/repos/user-cont/conu/pulls/comments/189201797","pull_request_review_id":121335881,"id":189201797,"diff_hunk":"@@ -297,3 +289,58 @@ def graceful_get(d, *args):\n             logger.warning(\"exception while getting a value: %s\", ex)\n             return None\n     return value\n+\n+\n+def export_docker_container_to_directory(client, container, path):\n+    \"\"\"\n+    take selected docker container, create an archive out of it and\n+    unpack it to a selected location\n+\n+    :param client: instance of docker.APIClient\n+    :param container: instance of DockerContainer\n+    :param path: str, path to a directory, doesn't need to exist\n+    :return: None\n+    \"\"\"\n+    # we don't do this because of a bug in docker:\n+    # https://bugzilla.redhat.com/show_bug.cgi?id=1570828\n+    # stream, _ = client.get_archive(container.get_id(), \"/\")\n+    check_docker_command_works()\n+    export_p = subprocess.Popen(","path":"conu/utils/__init__.py","position":47,"original_position":47,"commit_id":"873c3f8d51de56b0ae4fd59ba7dd39cd71141f63","original_commit_id":"48e6037113d43fb9fd7ea64d6a6202f6e40012d3","user":{"login":"lachmanfrantisek","id":20214043,"avatar_url":"https://avatars1.githubusercontent.com/u/20214043?v=4","gravatar_id":"","url":"https://api.github.com/users/lachmanfrantisek","html_url":"https://github.com/lachmanfrantisek","followers_url":"https://api.github.com/users/lachmanfrantisek/followers","following_url":"https://api.github.com/users/lachmanfrantisek/following{/other_user}","gists_url":"https://api.github.com/users/lachmanfrantisek/gists{/gist_id}","starred_url":"https://api.github.com/users/lachmanfrantisek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lachmanfrantisek/subscriptions","organizations_url":"https://api.github.com/users/lachmanfrantisek/orgs","repos_url":"https://api.github.com/users/lachmanfrantisek/repos","events_url":"https://api.github.com/users/lachmanfrantisek/events{/privacy}","received_events_url":"https://api.github.com/users/lachmanfrantisek/received_events","type":"User","site_admin":false},"body":"Yes, we can turn off this check...","created_at":"2018-05-18T08:48:15Z","updated_at":"2018-05-18T08:48:16Z","html_url":"https://github.com/user-cont/conu/pull/206#discussion_r189201797","pull_request_url":"https://api.github.com/repos/user-cont/conu/pulls/206","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/user-cont/conu/pulls/comments/189201797"},"html":{"href":"https://github.com/user-cont/conu/pull/206#discussion_r189201797"},"pull_request":{"href":"https://api.github.com/repos/user-cont/conu/pulls/206"}},"in_reply_to_id":188995935},"pull_request":{"url":"https://api.github.com/repos/user-cont/conu/pulls/206","id":187181822,"html_url":"https://github.com/user-cont/conu/pull/206","diff_url":"https://github.com/user-cont/conu/pull/206.diff","patch_url":"https://github.com/user-cont/conu/pull/206.patch","issue_url":"https://api.github.com/repos/user-cont/conu/issues/206","number":206,"state":"open","locked":false,"title":"docker container: mount via export","user":{"login":"TomasTomecek","id":1662493,"avatar_url":"https://avatars0.githubusercontent.com/u/1662493?v=4","gravatar_id":"","url":"https://api.github.com/users/TomasTomecek","html_url":"https://github.com/TomasTomecek","followers_url":"https://api.github.com/users/TomasTomecek/followers","following_url":"https://api.github.com/users/TomasTomecek/following{/other_user}","gists_url":"https://api.github.com/users/TomasTomecek/gists{/gist_id}","starred_url":"https://api.github.com/users/TomasTomecek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomasTomecek/subscriptions","organizations_url":"https://api.github.com/users/TomasTomecek/orgs","repos_url":"https://api.github.com/users/TomasTomecek/repos","events_url":"https://api.github.com/users/TomasTomecek/events{/privacy}","received_events_url":"https://api.github.com/users/TomasTomecek/received_events","type":"User","site_admin":false},"body":"which means, we no longer need atomic\r\n\r\nFixes #205 \r\n\r\nTODO:\r\n* [x] use `docker export` instead","created_at":"2018-05-10T12:40:33Z","updated_at":"2018-05-18T08:48:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9cb5ffad538cfafb88bb40d1de2cf6f62929d1ca","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/user-cont/conu/pulls/206/commits","review_comments_url":"https://api.github.com/repos/user-cont/conu/pulls/206/comments","review_comment_url":"https://api.github.com/repos/user-cont/conu/pulls/comments{/number}","comments_url":"https://api.github.com/repos/user-cont/conu/issues/206/comments","statuses_url":"https://api.github.com/repos/user-cont/conu/statuses/873c3f8d51de56b0ae4fd59ba7dd39cd71141f63","head":{"label":"TomasTomecek:dkr-cont-mount-via-export","ref":"dkr-cont-mount-via-export","sha":"873c3f8d51de56b0ae4fd59ba7dd39cd71141f63","user":{"login":"TomasTomecek","id":1662493,"avatar_url":"https://avatars0.githubusercontent.com/u/1662493?v=4","gravatar_id":"","url":"https://api.github.com/users/TomasTomecek","html_url":"https://github.com/TomasTomecek","followers_url":"https://api.github.com/users/TomasTomecek/followers","following_url":"https://api.github.com/users/TomasTomecek/following{/other_user}","gists_url":"https://api.github.com/users/TomasTomecek/gists{/gist_id}","starred_url":"https://api.github.com/users/TomasTomecek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomasTomecek/subscriptions","organizations_url":"https://api.github.com/users/TomasTomecek/orgs","repos_url":"https://api.github.com/users/TomasTomecek/repos","events_url":"https://api.github.com/users/TomasTomecek/events{/privacy}","received_events_url":"https://api.github.com/users/TomasTomecek/received_events","type":"User","site_admin":false},"repo":{"id":103418738,"name":"conu","full_name":"TomasTomecek/conu","owner":{"login":"TomasTomecek","id":1662493,"avatar_url":"https://avatars0.githubusercontent.com/u/1662493?v=4","gravatar_id":"","url":"https://api.github.com/users/TomasTomecek","html_url":"https://github.com/TomasTomecek","followers_url":"https://api.github.com/users/TomasTomecek/followers","following_url":"https://api.github.com/users/TomasTomecek/following{/other_user}","gists_url":"https://api.github.com/users/TomasTomecek/gists{/gist_id}","starred_url":"https://api.github.com/users/TomasTomecek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomasTomecek/subscriptions","organizations_url":"https://api.github.com/users/TomasTomecek/orgs","repos_url":"https://api.github.com/users/TomasTomecek/repos","events_url":"https://api.github.com/users/TomasTomecek/events{/privacy}","received_events_url":"https://api.github.com/users/TomasTomecek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TomasTomecek/conu","description":"CONtainers Util functions to help you with testing of your containers.","fork":true,"url":"https://api.github.com/repos/TomasTomecek/conu","forks_url":"https://api.github.com/repos/TomasTomecek/conu/forks","keys_url":"https://api.github.com/repos/TomasTomecek/conu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TomasTomecek/conu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TomasTomecek/conu/teams","hooks_url":"https://api.github.com/repos/TomasTomecek/conu/hooks","issue_events_url":"https://api.github.com/repos/TomasTomecek/conu/issues/events{/number}","events_url":"https://api.github.com/repos/TomasTomecek/conu/events","assignees_url":"https://api.github.com/repos/TomasTomecek/conu/assignees{/user}","branches_url":"https://api.github.com/repos/TomasTomecek/conu/branches{/branch}","tags_url":"https://api.github.com/repos/TomasTomecek/conu/tags","blobs_url":"https://api.github.com/repos/TomasTomecek/conu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TomasTomecek/conu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TomasTomecek/conu/git/refs{/sha}","trees_url":"https://api.github.com/repos/TomasTomecek/conu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TomasTomecek/conu/statuses/{sha}","languages_url":"https://api.github.com/repos/TomasTomecek/conu/languages","stargazers_url":"https://api.github.com/repos/TomasTomecek/conu/stargazers","contributors_url":"https://api.github.com/repos/TomasTomecek/conu/contributors","subscribers_url":"https://api.github.com/repos/TomasTomecek/conu/subscribers","subscription_url":"https://api.github.com/repos/TomasTomecek/conu/subscription","commits_url":"https://api.github.com/repos/TomasTomecek/conu/commits{/sha}","git_commits_url":"https://api.github.com/repos/TomasTomecek/conu/git/commits{/sha}","comments_url":"https://api.github.com/repos/TomasTomecek/conu/comments{/number}","issue_comment_url":"https://api.github.com/repos/TomasTomecek/conu/issues/comments{/number}","contents_url":"https://api.github.com/repos/TomasTomecek/conu/contents/{+path}","compare_url":"https://api.github.com/repos/TomasTomecek/conu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TomasTomecek/conu/merges","archive_url":"https://api.github.com/repos/TomasTomecek/conu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TomasTomecek/conu/downloads","issues_url":"https://api.github.com/repos/TomasTomecek/conu/issues{/number}","pulls_url":"https://api.github.com/repos/TomasTomecek/conu/pulls{/number}","milestones_url":"https://api.github.com/repos/TomasTomecek/conu/milestones{/number}","notifications_url":"https://api.github.com/repos/TomasTomecek/conu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TomasTomecek/conu/labels{/name}","releases_url":"https://api.github.com/repos/TomasTomecek/conu/releases{/id}","deployments_url":"https://api.github.com/repos/TomasTomecek/conu/deployments","created_at":"2017-09-13T15:41:10Z","updated_at":"2018-05-02T08:21:40Z","pushed_at":"2018-05-18T08:47:42Z","git_url":"git://github.com/TomasTomecek/conu.git","ssh_url":"git@github.com:TomasTomecek/conu.git","clone_url":"https://github.com/TomasTomecek/conu.git","svn_url":"https://github.com/TomasTomecek/conu","homepage":"","size":2115,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"user-cont:master","ref":"master","sha":"01ebcc09d3c250d34f9a5614d9b6186e51298957","user":{"login":"user-cont","id":35456931,"avatar_url":"https://avatars1.githubusercontent.com/u/35456931?v=4","gravatar_id":"","url":"https://api.github.com/users/user-cont","html_url":"https://github.com/user-cont","followers_url":"https://api.github.com/users/user-cont/followers","following_url":"https://api.github.com/users/user-cont/following{/other_user}","gists_url":"https://api.github.com/users/user-cont/gists{/gist_id}","starred_url":"https://api.github.com/users/user-cont/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/user-cont/subscriptions","organizations_url":"https://api.github.com/users/user-cont/orgs","repos_url":"https://api.github.com/users/user-cont/repos","events_url":"https://api.github.com/users/user-cont/events{/privacy}","received_events_url":"https://api.github.com/users/user-cont/received_events","type":"Organization","site_admin":false},"repo":{"id":103242244,"name":"conu","full_name":"user-cont/conu","owner":{"login":"user-cont","id":35456931,"avatar_url":"https://avatars1.githubusercontent.com/u/35456931?v=4","gravatar_id":"","url":"https://api.github.com/users/user-cont","html_url":"https://github.com/user-cont","followers_url":"https://api.github.com/users/user-cont/followers","following_url":"https://api.github.com/users/user-cont/following{/other_user}","gists_url":"https://api.github.com/users/user-cont/gists{/gist_id}","starred_url":"https://api.github.com/users/user-cont/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/user-cont/subscriptions","organizations_url":"https://api.github.com/users/user-cont/orgs","repos_url":"https://api.github.com/users/user-cont/repos","events_url":"https://api.github.com/users/user-cont/events{/privacy}","received_events_url":"https://api.github.com/users/user-cont/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/user-cont/conu","description":"conu - python API for your containers","fork":false,"url":"https://api.github.com/repos/user-cont/conu","forks_url":"https://api.github.com/repos/user-cont/conu/forks","keys_url":"https://api.github.com/repos/user-cont/conu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/user-cont/conu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/user-cont/conu/teams","hooks_url":"https://api.github.com/repos/user-cont/conu/hooks","issue_events_url":"https://api.github.com/repos/user-cont/conu/issues/events{/number}","events_url":"https://api.github.com/repos/user-cont/conu/events","assignees_url":"https://api.github.com/repos/user-cont/conu/assignees{/user}","branches_url":"https://api.github.com/repos/user-cont/conu/branches{/branch}","tags_url":"https://api.github.com/repos/user-cont/conu/tags","blobs_url":"https://api.github.com/repos/user-cont/conu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/user-cont/conu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/user-cont/conu/git/refs{/sha}","trees_url":"https://api.github.com/repos/user-cont/conu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/user-cont/conu/statuses/{sha}","languages_url":"https://api.github.com/repos/user-cont/conu/languages","stargazers_url":"https://api.github.com/repos/user-cont/conu/stargazers","contributors_url":"https://api.github.com/repos/user-cont/conu/contributors","subscribers_url":"https://api.github.com/repos/user-cont/conu/subscribers","subscription_url":"https://api.github.com/repos/user-cont/conu/subscription","commits_url":"https://api.github.com/repos/user-cont/conu/commits{/sha}","git_commits_url":"https://api.github.com/repos/user-cont/conu/git/commits{/sha}","comments_url":"https://api.github.com/repos/user-cont/conu/comments{/number}","issue_comment_url":"https://api.github.com/repos/user-cont/conu/issues/comments{/number}","contents_url":"https://api.github.com/repos/user-cont/conu/contents/{+path}","compare_url":"https://api.github.com/repos/user-cont/conu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/user-cont/conu/merges","archive_url":"https://api.github.com/repos/user-cont/conu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/user-cont/conu/downloads","issues_url":"https://api.github.com/repos/user-cont/conu/issues{/number}","pulls_url":"https://api.github.com/repos/user-cont/conu/pulls{/number}","milestones_url":"https://api.github.com/repos/user-cont/conu/milestones{/number}","notifications_url":"https://api.github.com/repos/user-cont/conu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/user-cont/conu/labels{/name}","releases_url":"https://api.github.com/repos/user-cont/conu/releases{/id}","deployments_url":"https://api.github.com/repos/user-cont/conu/deployments","created_at":"2017-09-12T08:14:37Z","updated_at":"2018-05-16T13:57:39Z","pushed_at":"2018-05-18T08:47:43Z","git_url":"git://github.com/user-cont/conu.git","ssh_url":"git@github.com:user-cont/conu.git","clone_url":"https://github.com/user-cont/conu.git","svn_url":"https://github.com/user-cont/conu","homepage":"http://conu.readthedocs.io/en/latest/","size":2099,"stargazers_count":67,"watchers_count":67,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"archived":false,"open_issues_count":32,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":17,"open_issues":32,"watchers":67,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/user-cont/conu/pulls/206"},"html":{"href":"https://github.com/user-cont/conu/pull/206"},"issue":{"href":"https://api.github.com/repos/user-cont/conu/issues/206"},"comments":{"href":"https://api.github.com/repos/user-cont/conu/issues/206/comments"},"review_comments":{"href":"https://api.github.com/repos/user-cont/conu/pulls/206/comments"},"review_comment":{"href":"https://api.github.com/repos/user-cont/conu/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/user-cont/conu/pulls/206/commits"},"statuses":{"href":"https://api.github.com/repos/user-cont/conu/statuses/873c3f8d51de56b0ae4fd59ba7dd39cd71141f63"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"lachmanfrantisek"}}