{"action":"created","comment":{"url":"https://api.github.com/repos/user-cont/conu/pulls/comments/190247343","pull_request_review_id":122585491,"id":190247343,"diff_hunk":"@@ -393,6 +393,47 @@ def callback():\n             container_name = actual_name\n         return DockerContainer(self, container_id, popen_instance=popen_instance, name=container_name)\n \n+    def run_via_api(self, container_params):\n+        \"\"\"\n+        :param container_params:","path":"conu/backend/docker/image.py","position":6,"original_position":6,"commit_id":"4cb9e8de39a9e6400e0ddbf33a08c8e4d8ec6258","original_commit_id":"4cb9e8de39a9e6400e0ddbf33a08c8e4d8ec6258","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":"please document","created_at":"2018-05-23T13:33:53Z","updated_at":"2018-05-23T13:36:57Z","html_url":"https://github.com/user-cont/conu/pull/212#discussion_r190247343","pull_request_url":"https://api.github.com/repos/user-cont/conu/pulls/212","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/user-cont/conu/pulls/comments/190247343"},"html":{"href":"https://github.com/user-cont/conu/pull/212#discussion_r190247343"},"pull_request":{"href":"https://api.github.com/repos/user-cont/conu/pulls/212"}}},"pull_request":{"url":"https://api.github.com/repos/user-cont/conu/pulls/212","id":188885363,"html_url":"https://github.com/user-cont/conu/pull/212","diff_url":"https://github.com/user-cont/conu/pull/212.diff","patch_url":"https://github.com/user-cont/conu/pull/212.patch","issue_url":"https://api.github.com/repos/user-cont/conu/issues/212","number":212,"state":"open","locked":false,"title":"docker run parameters","user":{"login":"rpitonak","id":26160778,"avatar_url":"https://avatars3.githubusercontent.com/u/26160778?v=4","gravatar_id":"","url":"https://api.github.com/users/rpitonak","html_url":"https://github.com/rpitonak","followers_url":"https://api.github.com/users/rpitonak/followers","following_url":"https://api.github.com/users/rpitonak/following{/other_user}","gists_url":"https://api.github.com/users/rpitonak/gists{/gist_id}","starred_url":"https://api.github.com/users/rpitonak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpitonak/subscriptions","organizations_url":"https://api.github.com/users/rpitonak/orgs","repos_url":"https://api.github.com/users/rpitonak/repos","events_url":"https://api.github.com/users/rpitonak/events{/privacy}","received_events_url":"https://api.github.com/users/rpitonak/received_events","type":"User","site_admin":false},"body":"based on work done in this [PR](https://github.com/dhodovsk/conu/pull/2)\r\n\r\nNow we can convert object of type `DockerRunBuilder` and create instance of new introduced class `DockerContainerParameters`. Properties of this class can be used for running `docker run` using [docker-py API](https://github.com/docker/docker-py).\r\n\r\nFunctionality not cover all possible parameters, but they can be implemented easily in future PRs if this changes will be merged.\r\n\r\nI will be glad for review.","created_at":"2018-05-17T23:16:27Z","updated_at":"2018-05-23T13:36:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e3388e2ea0e465d421e957abf10b137b8c18d5c6","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/user-cont/conu/pulls/212/commits","review_comments_url":"https://api.github.com/repos/user-cont/conu/pulls/212/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/212/comments","statuses_url":"https://api.github.com/repos/user-cont/conu/statuses/4cb9e8de39a9e6400e0ddbf33a08c8e4d8ec6258","head":{"label":"rpitonak:docker-run-parser","ref":"docker-run-parser","sha":"4cb9e8de39a9e6400e0ddbf33a08c8e4d8ec6258","user":{"login":"rpitonak","id":26160778,"avatar_url":"https://avatars3.githubusercontent.com/u/26160778?v=4","gravatar_id":"","url":"https://api.github.com/users/rpitonak","html_url":"https://github.com/rpitonak","followers_url":"https://api.github.com/users/rpitonak/followers","following_url":"https://api.github.com/users/rpitonak/following{/other_user}","gists_url":"https://api.github.com/users/rpitonak/gists{/gist_id}","starred_url":"https://api.github.com/users/rpitonak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpitonak/subscriptions","organizations_url":"https://api.github.com/users/rpitonak/orgs","repos_url":"https://api.github.com/users/rpitonak/repos","events_url":"https://api.github.com/users/rpitonak/events{/privacy}","received_events_url":"https://api.github.com/users/rpitonak/received_events","type":"User","site_admin":false},"repo":{"id":121316080,"name":"conu","full_name":"rpitonak/conu","owner":{"login":"rpitonak","id":26160778,"avatar_url":"https://avatars3.githubusercontent.com/u/26160778?v=4","gravatar_id":"","url":"https://api.github.com/users/rpitonak","html_url":"https://github.com/rpitonak","followers_url":"https://api.github.com/users/rpitonak/followers","following_url":"https://api.github.com/users/rpitonak/following{/other_user}","gists_url":"https://api.github.com/users/rpitonak/gists{/gist_id}","starred_url":"https://api.github.com/users/rpitonak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpitonak/subscriptions","organizations_url":"https://api.github.com/users/rpitonak/orgs","repos_url":"https://api.github.com/users/rpitonak/repos","events_url":"https://api.github.com/users/rpitonak/events{/privacy}","received_events_url":"https://api.github.com/users/rpitonak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rpitonak/conu","description":"conu - python API for your containers","fork":true,"url":"https://api.github.com/repos/rpitonak/conu","forks_url":"https://api.github.com/repos/rpitonak/conu/forks","keys_url":"https://api.github.com/repos/rpitonak/conu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rpitonak/conu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rpitonak/conu/teams","hooks_url":"https://api.github.com/repos/rpitonak/conu/hooks","issue_events_url":"https://api.github.com/repos/rpitonak/conu/issues/events{/number}","events_url":"https://api.github.com/repos/rpitonak/conu/events","assignees_url":"https://api.github.com/repos/rpitonak/conu/assignees{/user}","branches_url":"https://api.github.com/repos/rpitonak/conu/branches{/branch}","tags_url":"https://api.github.com/repos/rpitonak/conu/tags","blobs_url":"https://api.github.com/repos/rpitonak/conu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rpitonak/conu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rpitonak/conu/git/refs{/sha}","trees_url":"https://api.github.com/repos/rpitonak/conu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rpitonak/conu/statuses/{sha}","languages_url":"https://api.github.com/repos/rpitonak/conu/languages","stargazers_url":"https://api.github.com/repos/rpitonak/conu/stargazers","contributors_url":"https://api.github.com/repos/rpitonak/conu/contributors","subscribers_url":"https://api.github.com/repos/rpitonak/conu/subscribers","subscription_url":"https://api.github.com/repos/rpitonak/conu/subscription","commits_url":"https://api.github.com/repos/rpitonak/conu/commits{/sha}","git_commits_url":"https://api.github.com/repos/rpitonak/conu/git/commits{/sha}","comments_url":"https://api.github.com/repos/rpitonak/conu/comments{/number}","issue_comment_url":"https://api.github.com/repos/rpitonak/conu/issues/comments{/number}","contents_url":"https://api.github.com/repos/rpitonak/conu/contents/{+path}","compare_url":"https://api.github.com/repos/rpitonak/conu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rpitonak/conu/merges","archive_url":"https://api.github.com/repos/rpitonak/conu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rpitonak/conu/downloads","issues_url":"https://api.github.com/repos/rpitonak/conu/issues{/number}","pulls_url":"https://api.github.com/repos/rpitonak/conu/pulls{/number}","milestones_url":"https://api.github.com/repos/rpitonak/conu/milestones{/number}","notifications_url":"https://api.github.com/repos/rpitonak/conu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rpitonak/conu/labels{/name}","releases_url":"https://api.github.com/repos/rpitonak/conu/releases{/id}","deployments_url":"https://api.github.com/repos/rpitonak/conu/deployments","created_at":"2018-02-12T23:35:45Z","updated_at":"2018-05-14T11:51:33Z","pushed_at":"2018-05-22T23:50:05Z","git_url":"git://github.com/rpitonak/conu.git","ssh_url":"git@github.com:rpitonak/conu.git","clone_url":"https://github.com/rpitonak/conu.git","svn_url":"https://github.com/rpitonak/conu","homepage":"http://conu.readthedocs.io/en/latest/","size":2168,"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":"bb0c5956be13b70b2b593c05a36f1145d4898e73","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-22T13:13:29Z","pushed_at":"2018-05-22T23:50:07Z","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":2123,"stargazers_count":68,"watchers_count":68,"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":28,"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":28,"watchers":68,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/user-cont/conu/pulls/212"},"html":{"href":"https://github.com/user-cont/conu/pull/212"},"issue":{"href":"https://api.github.com/repos/user-cont/conu/issues/212"},"comments":{"href":"https://api.github.com/repos/user-cont/conu/issues/212/comments"},"review_comments":{"href":"https://api.github.com/repos/user-cont/conu/pulls/212/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/212/commits"},"statuses":{"href":"https://api.github.com/repos/user-cont/conu/statuses/4cb9e8de39a9e6400e0ddbf33a08c8e4d8ec6258"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"TomasTomecek"}}