{"action":"created","comment":{"url":"https://api.github.com/repos/Vauxoo/runbot-addons/pulls/comments/181796122","pull_request_review_id":112477976,"id":181796122,"diff_hunk":"@@ -0,0 +1,55 @@\n+from odoo import models, fields, api\n+import subprocess\n+import uuid\n+MAGIC_PID_RUN_NEXT_JOB = -2\n+\n+\n+class RunbotBuild(models.Model):\n+    _inherit = \"runbot.build\"\n+    is_build_quayio = fields.Boolean(\"Build with image quay.io\", readonly=True)\n+\n+    @api.depends('name', 'branch_id.name')\n+    def _get_dest(self):\n+        builds = self.filtered('branch_id.repo_id.is_quayio_image')\n+        super(RunbotBuild, self - builds)._get_dest()\n+        for build in builds:\n+            build.dest = str(uuid.uuid4())\n+\n+    def _checkout(self):\n+        builds = self.filtered('branch_id.repo_id.is_quayio_image')\n+        super(RunbotBuild, self - builds)._checkout()\n+\n+    def _job_10_test_base(self, build, lock_path, log_path):\n+        if not build.is_build_quayio:\n+            return super(RunbotBuild, self)._job_10_test_base(\n+                build, lock_path, log_path)\n+        build.docker_image = build.branch_id.pull_head_name\n+        build.docker_container = build._get_docker_container()\n+\n+    def _job_20_test_all(self, build, lock_path, log_path):\n+        if not build.branch_id.repo_id.is_quayio_image:\n+            return super(RunbotBuild, self)._job_20_test_all(\n+                build, lock_path, log_path)\n+        cmd = [\n+            'docker', 'run',\n+            '-p', '%d:%d' % (build.port, 8069),\n+            '--name=' + build.docker_container,\n+            '-t', build.docker_image, '/entrypoint.sh'","path":"runbot_docker_orchest/models/runbot_build.py","position":37,"original_position":37,"commit_id":"9772385f9a8e3e0de4555d7a38b4cab480d82fed","original_commit_id":"9772385f9a8e3e0de4555d7a38b4cab480d82fed","user":{"login":"moylop260","id":6644187,"avatar_url":"https://avatars0.githubusercontent.com/u/6644187?v=4","gravatar_id":"","url":"https://api.github.com/users/moylop260","html_url":"https://github.com/moylop260","followers_url":"https://api.github.com/users/moylop260/followers","following_url":"https://api.github.com/users/moylop260/following{/other_user}","gists_url":"https://api.github.com/users/moylop260/gists{/gist_id}","starred_url":"https://api.github.com/users/moylop260/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moylop260/subscriptions","organizations_url":"https://api.github.com/users/moylop260/orgs","repos_url":"https://api.github.com/users/moylop260/repos","events_url":"https://api.github.com/users/moylop260/events{/privacy}","received_events_url":"https://api.github.com/users/moylop260/received_events","type":"User","site_admin":false},"body":"README that the images should be `/entrypoint.sh` file","created_at":"2018-04-16T16:05:20Z","updated_at":"2018-04-16T16:41:59Z","html_url":"https://github.com/Vauxoo/runbot-addons/pull/160#discussion_r181796122","pull_request_url":"https://api.github.com/repos/Vauxoo/runbot-addons/pulls/160","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Vauxoo/runbot-addons/pulls/comments/181796122"},"html":{"href":"https://github.com/Vauxoo/runbot-addons/pull/160#discussion_r181796122"},"pull_request":{"href":"https://api.github.com/repos/Vauxoo/runbot-addons/pulls/160"}}},"pull_request":{"url":"https://api.github.com/repos/Vauxoo/runbot-addons/pulls/160","id":178955541,"html_url":"https://github.com/Vauxoo/runbot-addons/pull/160","diff_url":"https://github.com/Vauxoo/runbot-addons/pull/160.diff","patch_url":"https://github.com/Vauxoo/runbot-addons/pull/160.patch","issue_url":"https://api.github.com/repos/Vauxoo/runbot-addons/issues/160","number":160,"state":"open","locked":false,"title":"[IMP] Add module to create builds with imagen of orchestv","user":{"login":"mapuerta","id":16363083,"avatar_url":"https://avatars3.githubusercontent.com/u/16363083?v=4","gravatar_id":"","url":"https://api.github.com/users/mapuerta","html_url":"https://github.com/mapuerta","followers_url":"https://api.github.com/users/mapuerta/followers","following_url":"https://api.github.com/users/mapuerta/following{/other_user}","gists_url":"https://api.github.com/users/mapuerta/gists{/gist_id}","starred_url":"https://api.github.com/users/mapuerta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapuerta/subscriptions","organizations_url":"https://api.github.com/users/mapuerta/orgs","repos_url":"https://api.github.com/users/mapuerta/repos","events_url":"https://api.github.com/users/mapuerta/events{/privacy}","received_events_url":"https://api.github.com/users/mapuerta/received_events","type":"User","site_admin":false},"body":"For more information see the [issue](https://git.vauxoo.com/vauxoo/orchest/issues/426)\r\n\r\nThis MR depends of this [MR](https://git.vauxoo.com/vauxoo/deployv/merge_requests/255)","created_at":"2018-04-02T23:10:48Z","updated_at":"2018-04-16T16:42:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8a4a1259482b7b134360a1a6c5ac9c13cbc465e6","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Vauxoo/runbot-addons/pulls/160/commits","review_comments_url":"https://api.github.com/repos/Vauxoo/runbot-addons/pulls/160/comments","review_comment_url":"https://api.github.com/repos/Vauxoo/runbot-addons/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Vauxoo/runbot-addons/issues/160/comments","statuses_url":"https://api.github.com/repos/Vauxoo/runbot-addons/statuses/9772385f9a8e3e0de4555d7a38b4cab480d82fed","head":{"label":"vauxoo-dev:11.0-fix#426-mapuerta","ref":"11.0-fix#426-mapuerta","sha":"9772385f9a8e3e0de4555d7a38b4cab480d82fed","user":{"login":"vauxoo-dev","id":7662790,"avatar_url":"https://avatars2.githubusercontent.com/u/7662790?v=4","gravatar_id":"","url":"https://api.github.com/users/vauxoo-dev","html_url":"https://github.com/vauxoo-dev","followers_url":"https://api.github.com/users/vauxoo-dev/followers","following_url":"https://api.github.com/users/vauxoo-dev/following{/other_user}","gists_url":"https://api.github.com/users/vauxoo-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/vauxoo-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vauxoo-dev/subscriptions","organizations_url":"https://api.github.com/users/vauxoo-dev/orgs","repos_url":"https://api.github.com/users/vauxoo-dev/repos","events_url":"https://api.github.com/users/vauxoo-dev/events{/privacy}","received_events_url":"https://api.github.com/users/vauxoo-dev/received_events","type":"Organization","site_admin":false},"repo":{"id":22970969,"name":"runbot-addons","full_name":"vauxoo-dev/runbot-addons","owner":{"login":"vauxoo-dev","id":7662790,"avatar_url":"https://avatars2.githubusercontent.com/u/7662790?v=4","gravatar_id":"","url":"https://api.github.com/users/vauxoo-dev","html_url":"https://github.com/vauxoo-dev","followers_url":"https://api.github.com/users/vauxoo-dev/followers","following_url":"https://api.github.com/users/vauxoo-dev/following{/other_user}","gists_url":"https://api.github.com/users/vauxoo-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/vauxoo-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vauxoo-dev/subscriptions","organizations_url":"https://api.github.com/users/vauxoo-dev/orgs","repos_url":"https://api.github.com/users/vauxoo-dev/repos","events_url":"https://api.github.com/users/vauxoo-dev/events{/privacy}","received_events_url":"https://api.github.com/users/vauxoo-dev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vauxoo-dev/runbot-addons","description":"Runbot Custom Features to be used by community.","fork":true,"url":"https://api.github.com/repos/vauxoo-dev/runbot-addons","forks_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/forks","keys_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/teams","hooks_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/hooks","issue_events_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/issues/events{/number}","events_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/events","assignees_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/assignees{/user}","branches_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/branches{/branch}","tags_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/tags","blobs_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/git/refs{/sha}","trees_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/statuses/{sha}","languages_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/languages","stargazers_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/stargazers","contributors_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/contributors","subscribers_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/subscribers","subscription_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/subscription","commits_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/commits{/sha}","git_commits_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/git/commits{/sha}","comments_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/comments{/number}","issue_comment_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/issues/comments{/number}","contents_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/contents/{+path}","compare_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/merges","archive_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/downloads","issues_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/issues{/number}","pulls_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/pulls{/number}","milestones_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/milestones{/number}","notifications_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/labels{/name}","releases_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/releases{/id}","deployments_url":"https://api.github.com/repos/vauxoo-dev/runbot-addons/deployments","created_at":"2014-08-14T22:43:43Z","updated_at":"2014-07-25T22:30:54Z","pushed_at":"2018-04-13T17:54:00Z","git_url":"git://github.com/vauxoo-dev/runbot-addons.git","ssh_url":"git@github.com:vauxoo-dev/runbot-addons.git","clone_url":"https://github.com/vauxoo-dev/runbot-addons.git","svn_url":"https://github.com/vauxoo-dev/runbot-addons","homepage":"","size":1033,"stargazers_count":0,"watchers_count":0,"language":null,"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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Vauxoo:11.0","ref":"11.0","sha":"c04d3de7749db4ac9f6f4a18d8c848abdc1ab45c","user":{"login":"Vauxoo","id":5997834,"avatar_url":"https://avatars0.githubusercontent.com/u/5997834?v=4","gravatar_id":"","url":"https://api.github.com/users/Vauxoo","html_url":"https://github.com/Vauxoo","followers_url":"https://api.github.com/users/Vauxoo/followers","following_url":"https://api.github.com/users/Vauxoo/following{/other_user}","gists_url":"https://api.github.com/users/Vauxoo/gists{/gist_id}","starred_url":"https://api.github.com/users/Vauxoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vauxoo/subscriptions","organizations_url":"https://api.github.com/users/Vauxoo/orgs","repos_url":"https://api.github.com/users/Vauxoo/repos","events_url":"https://api.github.com/users/Vauxoo/events{/privacy}","received_events_url":"https://api.github.com/users/Vauxoo/received_events","type":"Organization","site_admin":false},"repo":{"id":22969628,"name":"runbot-addons","full_name":"Vauxoo/runbot-addons","owner":{"login":"Vauxoo","id":5997834,"avatar_url":"https://avatars0.githubusercontent.com/u/5997834?v=4","gravatar_id":"","url":"https://api.github.com/users/Vauxoo","html_url":"https://github.com/Vauxoo","followers_url":"https://api.github.com/users/Vauxoo/followers","following_url":"https://api.github.com/users/Vauxoo/following{/other_user}","gists_url":"https://api.github.com/users/Vauxoo/gists{/gist_id}","starred_url":"https://api.github.com/users/Vauxoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vauxoo/subscriptions","organizations_url":"https://api.github.com/users/Vauxoo/orgs","repos_url":"https://api.github.com/users/Vauxoo/repos","events_url":"https://api.github.com/users/Vauxoo/events{/privacy}","received_events_url":"https://api.github.com/users/Vauxoo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Vauxoo/runbot-addons","description":"Runbot Custom Features to be used by community.","fork":true,"url":"https://api.github.com/repos/Vauxoo/runbot-addons","forks_url":"https://api.github.com/repos/Vauxoo/runbot-addons/forks","keys_url":"https://api.github.com/repos/Vauxoo/runbot-addons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vauxoo/runbot-addons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vauxoo/runbot-addons/teams","hooks_url":"https://api.github.com/repos/Vauxoo/runbot-addons/hooks","issue_events_url":"https://api.github.com/repos/Vauxoo/runbot-addons/issues/events{/number}","events_url":"https://api.github.com/repos/Vauxoo/runbot-addons/events","assignees_url":"https://api.github.com/repos/Vauxoo/runbot-addons/assignees{/user}","branches_url":"https://api.github.com/repos/Vauxoo/runbot-addons/branches{/branch}","tags_url":"https://api.github.com/repos/Vauxoo/runbot-addons/tags","blobs_url":"https://api.github.com/repos/Vauxoo/runbot-addons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vauxoo/runbot-addons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vauxoo/runbot-addons/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vauxoo/runbot-addons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vauxoo/runbot-addons/statuses/{sha}","languages_url":"https://api.github.com/repos/Vauxoo/runbot-addons/languages","stargazers_url":"https://api.github.com/repos/Vauxoo/runbot-addons/stargazers","contributors_url":"https://api.github.com/repos/Vauxoo/runbot-addons/contributors","subscribers_url":"https://api.github.com/repos/Vauxoo/runbot-addons/subscribers","subscription_url":"https://api.github.com/repos/Vauxoo/runbot-addons/subscription","commits_url":"https://api.github.com/repos/Vauxoo/runbot-addons/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vauxoo/runbot-addons/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vauxoo/runbot-addons/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vauxoo/runbot-addons/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vauxoo/runbot-addons/contents/{+path}","compare_url":"https://api.github.com/repos/Vauxoo/runbot-addons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vauxoo/runbot-addons/merges","archive_url":"https://api.github.com/repos/Vauxoo/runbot-addons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vauxoo/runbot-addons/downloads","issues_url":"https://api.github.com/repos/Vauxoo/runbot-addons/issues{/number}","pulls_url":"https://api.github.com/repos/Vauxoo/runbot-addons/pulls{/number}","milestones_url":"https://api.github.com/repos/Vauxoo/runbot-addons/milestones{/number}","notifications_url":"https://api.github.com/repos/Vauxoo/runbot-addons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vauxoo/runbot-addons/labels{/name}","releases_url":"https://api.github.com/repos/Vauxoo/runbot-addons/releases{/id}","deployments_url":"https://api.github.com/repos/Vauxoo/runbot-addons/deployments","created_at":"2014-08-14T21:44:05Z","updated_at":"2018-04-13T17:53:58Z","pushed_at":"2018-04-13T17:53:56Z","git_url":"git://github.com/Vauxoo/runbot-addons.git","ssh_url":"git@github.com:Vauxoo/runbot-addons.git","clone_url":"https://github.com/Vauxoo/runbot-addons.git","svn_url":"https://github.com/Vauxoo/runbot-addons","homepage":"","size":616,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":20,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":6,"open_issues":20,"watchers":3,"default_branch":"11.0"}},"_links":{"self":{"href":"https://api.github.com/repos/Vauxoo/runbot-addons/pulls/160"},"html":{"href":"https://github.com/Vauxoo/runbot-addons/pull/160"},"issue":{"href":"https://api.github.com/repos/Vauxoo/runbot-addons/issues/160"},"comments":{"href":"https://api.github.com/repos/Vauxoo/runbot-addons/issues/160/comments"},"review_comments":{"href":"https://api.github.com/repos/Vauxoo/runbot-addons/pulls/160/comments"},"review_comment":{"href":"https://api.github.com/repos/Vauxoo/runbot-addons/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Vauxoo/runbot-addons/pulls/160/commits"},"statuses":{"href":"https://api.github.com/repos/Vauxoo/runbot-addons/statuses/9772385f9a8e3e0de4555d7a38b4cab480d82fed"}},"author_association":"NONE"}}
{"actor":{"display_login":"moylop260"}}