{"action":"created","comment":{"url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/pulls/comments/43526475","id":43526475,"diff_hunk":"@@ -51,3 +61,33 @@ def set_properties(project):\n         'Programming Language :: Python',\n         'Topic :: System :: Networking'\n     ])\n+\n+\n+def check_sh(logger):\n+    \"\"\" Check if 'sh' module is installed'. \"\"\"\n+    if not sh:\n+        logger.error(\"The 'sh' module was not found!\")\n+        logger.error(\"Run 'pyb install_dependencies' to enable this task.\")\n+        raise BuildFailedException('Unable to run task!')\n+\n+\n+def docker_execute(command_list):\n+    \"\"\" Run and tail a docker command. \"\"\"\n+    running_command = sh.docker(command_list)\n+    for line in running_command:\n+        print(line.strip())\n+\n+\n+@task\n+def docker_build(logger):\n+    check_sh(logger)\n+    logger.info(\"Will now attempt to build the docker image.\")\n+    docker_execute(['build', '-t',\n+                    '{0}/{1}:{2}'.format(org_name, name, version), '.'])","path":"build.py","position":62,"original_position":62,"commit_id":"28d34af806657a488994fb0e352f4166ae66eed2","original_commit_id":"28d34af806657a488994fb0e352f4166ae66eed2","user":{"login":"esc","id":41563,"avatar_url":"https://avatars.githubusercontent.com/u/41563?v=3","gravatar_id":"","url":"https://api.github.com/users/esc","html_url":"https://github.com/esc","followers_url":"https://api.github.com/users/esc/followers","following_url":"https://api.github.com/users/esc/following{/other_user}","gists_url":"https://api.github.com/users/esc/gists{/gist_id}","starred_url":"https://api.github.com/users/esc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esc/subscriptions","organizations_url":"https://api.github.com/users/esc/orgs","repos_url":"https://api.github.com/users/esc/repos","events_url":"https://api.github.com/users/esc/events{/privacy}","received_events_url":"https://api.github.com/users/esc/received_events","type":"User","site_admin":false},"body":"Yay, we have been doing this quite alot after you mentioned it! Thanks again for the hint!","created_at":"2015-10-30T17:03:14Z","updated_at":"2015-10-30T17:03:14Z","html_url":"https://github.com/ImmobilienScout24/python-docker-hello-world-webapp/pull/1#discussion_r43526475","pull_request_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/pulls/comments/43526475"},"html":{"href":"https://github.com/ImmobilienScout24/python-docker-hello-world-webapp/pull/1#discussion_r43526475"},"pull_request":{"href":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/pulls/1","id":48211246,"html_url":"https://github.com/ImmobilienScout24/python-docker-hello-world-webapp/pull/1","diff_url":"https://github.com/ImmobilienScout24/python-docker-hello-world-webapp/pull/1.diff","patch_url":"https://github.com/ImmobilienScout24/python-docker-hello-world-webapp/pull/1.patch","issue_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/issues/1","number":1,"state":"closed","locked":false,"title":"Build docker images and remove them again","user":{"login":"esc","id":41563,"avatar_url":"https://avatars.githubusercontent.com/u/41563?v=3","gravatar_id":"","url":"https://api.github.com/users/esc","html_url":"https://github.com/esc","followers_url":"https://api.github.com/users/esc/followers","following_url":"https://api.github.com/users/esc/following{/other_user}","gists_url":"https://api.github.com/users/esc/gists{/gist_id}","starred_url":"https://api.github.com/users/esc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esc/subscriptions","organizations_url":"https://api.github.com/users/esc/orgs","repos_url":"https://api.github.com/users/esc/repos","events_url":"https://api.github.com/users/esc/events{/privacy}","received_events_url":"https://api.github.com/users/esc/received_events","type":"User","site_admin":false},"body":"And now from within pybuilder.","created_at":"2015-10-20T14:50:43Z","updated_at":"2015-10-30T17:03:14Z","closed_at":"2015-10-21T08:31:56Z","merged_at":"2015-10-21T08:31:56Z","merge_commit_sha":"667e6d2847a1c484856af8aad2248925ec0d02d9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/pulls/1/commits","review_comments_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/pulls/1/comments","review_comment_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/issues/1/comments","statuses_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/statuses/28d34af806657a488994fb0e352f4166ae66eed2","head":{"label":"ImmobilienScout24:feature/build_docker","ref":"feature/build_docker","sha":"28d34af806657a488994fb0e352f4166ae66eed2","user":{"login":"ImmobilienScout24","id":1132872,"avatar_url":"https://avatars.githubusercontent.com/u/1132872?v=3","gravatar_id":"","url":"https://api.github.com/users/ImmobilienScout24","html_url":"https://github.com/ImmobilienScout24","followers_url":"https://api.github.com/users/ImmobilienScout24/followers","following_url":"https://api.github.com/users/ImmobilienScout24/following{/other_user}","gists_url":"https://api.github.com/users/ImmobilienScout24/gists{/gist_id}","starred_url":"https://api.github.com/users/ImmobilienScout24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ImmobilienScout24/subscriptions","organizations_url":"https://api.github.com/users/ImmobilienScout24/orgs","repos_url":"https://api.github.com/users/ImmobilienScout24/repos","events_url":"https://api.github.com/users/ImmobilienScout24/events{/privacy}","received_events_url":"https://api.github.com/users/ImmobilienScout24/received_events","type":"Organization","site_admin":false},"repo":{"id":44323939,"name":"python-docker-hello-world-webapp","full_name":"ImmobilienScout24/python-docker-hello-world-webapp","owner":{"login":"ImmobilienScout24","id":1132872,"avatar_url":"https://avatars.githubusercontent.com/u/1132872?v=3","gravatar_id":"","url":"https://api.github.com/users/ImmobilienScout24","html_url":"https://github.com/ImmobilienScout24","followers_url":"https://api.github.com/users/ImmobilienScout24/followers","following_url":"https://api.github.com/users/ImmobilienScout24/following{/other_user}","gists_url":"https://api.github.com/users/ImmobilienScout24/gists{/gist_id}","starred_url":"https://api.github.com/users/ImmobilienScout24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ImmobilienScout24/subscriptions","organizations_url":"https://api.github.com/users/ImmobilienScout24/orgs","repos_url":"https://api.github.com/users/ImmobilienScout24/repos","events_url":"https://api.github.com/users/ImmobilienScout24/events{/privacy}","received_events_url":"https://api.github.com/users/ImmobilienScout24/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ImmobilienScout24/python-docker-hello-world-webapp","description":"A test project for docke-rized deployment chain into the AWS cloud, implemented with Python","fork":false,"url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp","forks_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/forks","keys_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/teams","hooks_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/hooks","issue_events_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/issues/events{/number}","events_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/events","assignees_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/assignees{/user}","branches_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/branches{/branch}","tags_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/tags","blobs_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/statuses/{sha}","languages_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/languages","stargazers_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/stargazers","contributors_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/contributors","subscribers_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/subscribers","subscription_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/subscription","commits_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/contents/{+path}","compare_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/merges","archive_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/downloads","issues_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/issues{/number}","pulls_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/pulls{/number}","milestones_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/milestones{/number}","notifications_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/labels{/name}","releases_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/releases{/id}","created_at":"2015-10-15T14:41:58Z","updated_at":"2015-10-15T15:07:14Z","pushed_at":"2015-10-30T16:28:57Z","git_url":"git://github.com/ImmobilienScout24/python-docker-hello-world-webapp.git","ssh_url":"git@github.com:ImmobilienScout24/python-docker-hello-world-webapp.git","clone_url":"https://github.com/ImmobilienScout24/python-docker-hello-world-webapp.git","svn_url":"https://github.com/ImmobilienScout24/python-docker-hello-world-webapp","homepage":null,"size":256,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"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":"ImmobilienScout24:master","ref":"master","sha":"2d3a8223ce4552e4716a4117330d526e560ae798","user":{"login":"ImmobilienScout24","id":1132872,"avatar_url":"https://avatars.githubusercontent.com/u/1132872?v=3","gravatar_id":"","url":"https://api.github.com/users/ImmobilienScout24","html_url":"https://github.com/ImmobilienScout24","followers_url":"https://api.github.com/users/ImmobilienScout24/followers","following_url":"https://api.github.com/users/ImmobilienScout24/following{/other_user}","gists_url":"https://api.github.com/users/ImmobilienScout24/gists{/gist_id}","starred_url":"https://api.github.com/users/ImmobilienScout24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ImmobilienScout24/subscriptions","organizations_url":"https://api.github.com/users/ImmobilienScout24/orgs","repos_url":"https://api.github.com/users/ImmobilienScout24/repos","events_url":"https://api.github.com/users/ImmobilienScout24/events{/privacy}","received_events_url":"https://api.github.com/users/ImmobilienScout24/received_events","type":"Organization","site_admin":false},"repo":{"id":44323939,"name":"python-docker-hello-world-webapp","full_name":"ImmobilienScout24/python-docker-hello-world-webapp","owner":{"login":"ImmobilienScout24","id":1132872,"avatar_url":"https://avatars.githubusercontent.com/u/1132872?v=3","gravatar_id":"","url":"https://api.github.com/users/ImmobilienScout24","html_url":"https://github.com/ImmobilienScout24","followers_url":"https://api.github.com/users/ImmobilienScout24/followers","following_url":"https://api.github.com/users/ImmobilienScout24/following{/other_user}","gists_url":"https://api.github.com/users/ImmobilienScout24/gists{/gist_id}","starred_url":"https://api.github.com/users/ImmobilienScout24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ImmobilienScout24/subscriptions","organizations_url":"https://api.github.com/users/ImmobilienScout24/orgs","repos_url":"https://api.github.com/users/ImmobilienScout24/repos","events_url":"https://api.github.com/users/ImmobilienScout24/events{/privacy}","received_events_url":"https://api.github.com/users/ImmobilienScout24/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ImmobilienScout24/python-docker-hello-world-webapp","description":"A test project for docke-rized deployment chain into the AWS cloud, implemented with Python","fork":false,"url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp","forks_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/forks","keys_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/teams","hooks_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/hooks","issue_events_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/issues/events{/number}","events_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/events","assignees_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/assignees{/user}","branches_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/branches{/branch}","tags_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/tags","blobs_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/statuses/{sha}","languages_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/languages","stargazers_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/stargazers","contributors_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/contributors","subscribers_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/subscribers","subscription_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/subscription","commits_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/contents/{+path}","compare_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/merges","archive_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/downloads","issues_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/issues{/number}","pulls_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/pulls{/number}","milestones_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/milestones{/number}","notifications_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/labels{/name}","releases_url":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/releases{/id}","created_at":"2015-10-15T14:41:58Z","updated_at":"2015-10-15T15:07:14Z","pushed_at":"2015-10-30T16:28:57Z","git_url":"git://github.com/ImmobilienScout24/python-docker-hello-world-webapp.git","ssh_url":"git@github.com:ImmobilienScout24/python-docker-hello-world-webapp.git","clone_url":"https://github.com/ImmobilienScout24/python-docker-hello-world-webapp.git","svn_url":"https://github.com/ImmobilienScout24/python-docker-hello-world-webapp","homepage":null,"size":256,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"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"}},"_links":{"self":{"href":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/pulls/1"},"html":{"href":"https://github.com/ImmobilienScout24/python-docker-hello-world-webapp/pull/1"},"issue":{"href":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/issues/1"},"comments":{"href":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/ImmobilienScout24/python-docker-hello-world-webapp/statuses/28d34af806657a488994fb0e352f4166ae66eed2"}}}}