{"action":"created","comment":{"url":"https://api.github.com/repos/Humanitec/django-service-wizard/pulls/comments/207862690","pull_request_review_id":143556985,"id":207862690,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNzg2MjY5MA==","diff_hunk":"@@ -12,4 +12,4 @@ ENV environment=${environment}\n RUN echo \"Environment: $environment\"\n \n EXPOSE 8080\n-ENTRYPOINT [\"/code/docker-entrypoint.sh\"]\n+ENTRYPOINT [\"bash\", \"/code/docker-entrypoint.sh\"]","path":"service_builder/templates/docker/Dockerfile","position":5,"original_position":5,"commit_id":"c557886abf0e087b1a3f4b19ca3c795b09c21ae4","original_commit_id":"c557886abf0e087b1a3f4b19ca3c795b09c21ae4","user":{"login":"bogdangi","id":1222466,"node_id":"MDQ6VXNlcjEyMjI0NjY=","avatar_url":"https://avatars3.githubusercontent.com/u/1222466?v=4","gravatar_id":"","url":"https://api.github.com/users/bogdangi","html_url":"https://github.com/bogdangi","followers_url":"https://api.github.com/users/bogdangi/followers","following_url":"https://api.github.com/users/bogdangi/following{/other_user}","gists_url":"https://api.github.com/users/bogdangi/gists{/gist_id}","starred_url":"https://api.github.com/users/bogdangi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogdangi/subscriptions","organizations_url":"https://api.github.com/users/bogdangi/orgs","repos_url":"https://api.github.com/users/bogdangi/repos","events_url":"https://api.github.com/users/bogdangi/events{/privacy}","received_events_url":"https://api.github.com/users/bogdangi/received_events","type":"User","site_admin":false},"body":"I would recommend to add additional step in `Dockerfile` to make the entrypoint executable.\r\n```\r\nRUN chmod +x /code/docker-entrypoint.sh\r\n```\r\nOr  we can add permission modification step in code to accept permissions for the file https://github.com/Humanitec/django-service-wizard/blob/e360903ccf98c7dc64de46853ef2c84d12af3682/service_builder/utils.py#L81,\r\nand then we will do follow:\r\n```\r\nhttps://github.com/Humanitec/django-service-wizard/blob/e360903ccf98c7dc64de46853ef2c84d12af3682/service_builder/utils.py#L81\r\nand copy state from the template fie like this:\r\n```\r\nimport os\r\nimport stat\r\n\r\nst = os.stat('docker-entrypoint.sh')\r\nos.chmod('docker-entrypoint.sh', st.st_mode | stat.S_IEXEC)\r\n```","created_at":"2018-08-06T11:45:26Z","updated_at":"2018-08-06T11:45:57Z","html_url":"https://github.com/Humanitec/django-service-wizard/pull/11#discussion_r207862690","pull_request_url":"https://api.github.com/repos/Humanitec/django-service-wizard/pulls/11","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Humanitec/django-service-wizard/pulls/comments/207862690"},"html":{"href":"https://github.com/Humanitec/django-service-wizard/pull/11#discussion_r207862690"},"pull_request":{"href":"https://api.github.com/repos/Humanitec/django-service-wizard/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/Humanitec/django-service-wizard/pulls/11","id":206362226,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2MzYyMjI2","html_url":"https://github.com/Humanitec/django-service-wizard/pull/11","diff_url":"https://github.com/Humanitec/django-service-wizard/pull/11.diff","patch_url":"https://github.com/Humanitec/django-service-wizard/pull/11.patch","issue_url":"https://api.github.com/repos/Humanitec/django-service-wizard/issues/11","number":11,"state":"open","locked":false,"title":"Avoid chmod","user":{"login":"Menda","id":23944,"node_id":"MDQ6VXNlcjIzOTQ0","avatar_url":"https://avatars2.githubusercontent.com/u/23944?v=4","gravatar_id":"","url":"https://api.github.com/users/Menda","html_url":"https://github.com/Menda","followers_url":"https://api.github.com/users/Menda/followers","following_url":"https://api.github.com/users/Menda/following{/other_user}","gists_url":"https://api.github.com/users/Menda/gists{/gist_id}","starred_url":"https://api.github.com/users/Menda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Menda/subscriptions","organizations_url":"https://api.github.com/users/Menda/orgs","repos_url":"https://api.github.com/users/Menda/repos","events_url":"https://api.github.com/users/Menda/events{/privacy}","received_events_url":"https://api.github.com/users/Menda/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-06T10:58:04Z","updated_at":"2018-08-06T11:45:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ffc2a734b030c09152ea258ecfa5ce443c268c5d","assignee":null,"assignees":[],"requested_reviewers":[{"login":"yilmazbekdemir","id":38286727,"node_id":"MDQ6VXNlcjM4Mjg2NzI3","avatar_url":"https://avatars2.githubusercontent.com/u/38286727?v=4","gravatar_id":"","url":"https://api.github.com/users/yilmazbekdemir","html_url":"https://github.com/yilmazbekdemir","followers_url":"https://api.github.com/users/yilmazbekdemir/followers","following_url":"https://api.github.com/users/yilmazbekdemir/following{/other_user}","gists_url":"https://api.github.com/users/yilmazbekdemir/gists{/gist_id}","starred_url":"https://api.github.com/users/yilmazbekdemir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yilmazbekdemir/subscriptions","organizations_url":"https://api.github.com/users/yilmazbekdemir/orgs","repos_url":"https://api.github.com/users/yilmazbekdemir/repos","events_url":"https://api.github.com/users/yilmazbekdemir/events{/privacy}","received_events_url":"https://api.github.com/users/yilmazbekdemir/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Humanitec/django-service-wizard/pulls/11/commits","review_comments_url":"https://api.github.com/repos/Humanitec/django-service-wizard/pulls/11/comments","review_comment_url":"https://api.github.com/repos/Humanitec/django-service-wizard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Humanitec/django-service-wizard/issues/11/comments","statuses_url":"https://api.github.com/repos/Humanitec/django-service-wizard/statuses/c557886abf0e087b1a3f4b19ca3c795b09c21ae4","head":{"label":"Menda:avoid-chmod","ref":"avoid-chmod","sha":"c557886abf0e087b1a3f4b19ca3c795b09c21ae4","user":{"login":"Menda","id":23944,"node_id":"MDQ6VXNlcjIzOTQ0","avatar_url":"https://avatars2.githubusercontent.com/u/23944?v=4","gravatar_id":"","url":"https://api.github.com/users/Menda","html_url":"https://github.com/Menda","followers_url":"https://api.github.com/users/Menda/followers","following_url":"https://api.github.com/users/Menda/following{/other_user}","gists_url":"https://api.github.com/users/Menda/gists{/gist_id}","starred_url":"https://api.github.com/users/Menda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Menda/subscriptions","organizations_url":"https://api.github.com/users/Menda/orgs","repos_url":"https://api.github.com/users/Menda/repos","events_url":"https://api.github.com/users/Menda/events{/privacy}","received_events_url":"https://api.github.com/users/Menda/received_events","type":"User","site_admin":false},"repo":{"id":141684810,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE2ODQ4MTA=","name":"django-service-wizard","full_name":"Menda/django-service-wizard","owner":{"login":"Menda","id":23944,"node_id":"MDQ6VXNlcjIzOTQ0","avatar_url":"https://avatars2.githubusercontent.com/u/23944?v=4","gravatar_id":"","url":"https://api.github.com/users/Menda","html_url":"https://github.com/Menda","followers_url":"https://api.github.com/users/Menda/followers","following_url":"https://api.github.com/users/Menda/following{/other_user}","gists_url":"https://api.github.com/users/Menda/gists{/gist_id}","starred_url":"https://api.github.com/users/Menda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Menda/subscriptions","organizations_url":"https://api.github.com/users/Menda/orgs","repos_url":"https://api.github.com/users/Menda/repos","events_url":"https://api.github.com/users/Menda/events{/privacy}","received_events_url":"https://api.github.com/users/Menda/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Menda/django-service-wizard","description":"Django (Micro)Service wizard for the Humanitec Platform Walhall","fork":true,"url":"https://api.github.com/repos/Menda/django-service-wizard","forks_url":"https://api.github.com/repos/Menda/django-service-wizard/forks","keys_url":"https://api.github.com/repos/Menda/django-service-wizard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Menda/django-service-wizard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Menda/django-service-wizard/teams","hooks_url":"https://api.github.com/repos/Menda/django-service-wizard/hooks","issue_events_url":"https://api.github.com/repos/Menda/django-service-wizard/issues/events{/number}","events_url":"https://api.github.com/repos/Menda/django-service-wizard/events","assignees_url":"https://api.github.com/repos/Menda/django-service-wizard/assignees{/user}","branches_url":"https://api.github.com/repos/Menda/django-service-wizard/branches{/branch}","tags_url":"https://api.github.com/repos/Menda/django-service-wizard/tags","blobs_url":"https://api.github.com/repos/Menda/django-service-wizard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Menda/django-service-wizard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Menda/django-service-wizard/git/refs{/sha}","trees_url":"https://api.github.com/repos/Menda/django-service-wizard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Menda/django-service-wizard/statuses/{sha}","languages_url":"https://api.github.com/repos/Menda/django-service-wizard/languages","stargazers_url":"https://api.github.com/repos/Menda/django-service-wizard/stargazers","contributors_url":"https://api.github.com/repos/Menda/django-service-wizard/contributors","subscribers_url":"https://api.github.com/repos/Menda/django-service-wizard/subscribers","subscription_url":"https://api.github.com/repos/Menda/django-service-wizard/subscription","commits_url":"https://api.github.com/repos/Menda/django-service-wizard/commits{/sha}","git_commits_url":"https://api.github.com/repos/Menda/django-service-wizard/git/commits{/sha}","comments_url":"https://api.github.com/repos/Menda/django-service-wizard/comments{/number}","issue_comment_url":"https://api.github.com/repos/Menda/django-service-wizard/issues/comments{/number}","contents_url":"https://api.github.com/repos/Menda/django-service-wizard/contents/{+path}","compare_url":"https://api.github.com/repos/Menda/django-service-wizard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Menda/django-service-wizard/merges","archive_url":"https://api.github.com/repos/Menda/django-service-wizard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Menda/django-service-wizard/downloads","issues_url":"https://api.github.com/repos/Menda/django-service-wizard/issues{/number}","pulls_url":"https://api.github.com/repos/Menda/django-service-wizard/pulls{/number}","milestones_url":"https://api.github.com/repos/Menda/django-service-wizard/milestones{/number}","notifications_url":"https://api.github.com/repos/Menda/django-service-wizard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Menda/django-service-wizard/labels{/name}","releases_url":"https://api.github.com/repos/Menda/django-service-wizard/releases{/id}","deployments_url":"https://api.github.com/repos/Menda/django-service-wizard/deployments","created_at":"2018-07-20T08:22:27Z","updated_at":"2018-08-03T13:24:49Z","pushed_at":"2018-08-06T11:03:48Z","git_url":"git://github.com/Menda/django-service-wizard.git","ssh_url":"git@github.com:Menda/django-service-wizard.git","clone_url":"https://github.com/Menda/django-service-wizard.git","svn_url":"https://github.com/Menda/django-service-wizard","homepage":"https://www.humanitec.com","size":51,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"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","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Humanitec:master","ref":"master","sha":"ffd1f48386fce0fc1d5703312200b2b38a8ddbd3","user":{"login":"Humanitec","id":34414542,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0NDE0NTQy","avatar_url":"https://avatars0.githubusercontent.com/u/34414542?v=4","gravatar_id":"","url":"https://api.github.com/users/Humanitec","html_url":"https://github.com/Humanitec","followers_url":"https://api.github.com/users/Humanitec/followers","following_url":"https://api.github.com/users/Humanitec/following{/other_user}","gists_url":"https://api.github.com/users/Humanitec/gists{/gist_id}","starred_url":"https://api.github.com/users/Humanitec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Humanitec/subscriptions","organizations_url":"https://api.github.com/users/Humanitec/orgs","repos_url":"https://api.github.com/users/Humanitec/repos","events_url":"https://api.github.com/users/Humanitec/events{/privacy}","received_events_url":"https://api.github.com/users/Humanitec/received_events","type":"Organization","site_admin":false},"repo":{"id":133818855,"node_id":"MDEwOlJlcG9zaXRvcnkxMzM4MTg4NTU=","name":"django-service-wizard","full_name":"Humanitec/django-service-wizard","owner":{"login":"Humanitec","id":34414542,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0NDE0NTQy","avatar_url":"https://avatars0.githubusercontent.com/u/34414542?v=4","gravatar_id":"","url":"https://api.github.com/users/Humanitec","html_url":"https://github.com/Humanitec","followers_url":"https://api.github.com/users/Humanitec/followers","following_url":"https://api.github.com/users/Humanitec/following{/other_user}","gists_url":"https://api.github.com/users/Humanitec/gists{/gist_id}","starred_url":"https://api.github.com/users/Humanitec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Humanitec/subscriptions","organizations_url":"https://api.github.com/users/Humanitec/orgs","repos_url":"https://api.github.com/users/Humanitec/repos","events_url":"https://api.github.com/users/Humanitec/events{/privacy}","received_events_url":"https://api.github.com/users/Humanitec/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Humanitec/django-service-wizard","description":"Django (Micro)Service wizard for the Humanitec Platform Walhall","fork":false,"url":"https://api.github.com/repos/Humanitec/django-service-wizard","forks_url":"https://api.github.com/repos/Humanitec/django-service-wizard/forks","keys_url":"https://api.github.com/repos/Humanitec/django-service-wizard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Humanitec/django-service-wizard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Humanitec/django-service-wizard/teams","hooks_url":"https://api.github.com/repos/Humanitec/django-service-wizard/hooks","issue_events_url":"https://api.github.com/repos/Humanitec/django-service-wizard/issues/events{/number}","events_url":"https://api.github.com/repos/Humanitec/django-service-wizard/events","assignees_url":"https://api.github.com/repos/Humanitec/django-service-wizard/assignees{/user}","branches_url":"https://api.github.com/repos/Humanitec/django-service-wizard/branches{/branch}","tags_url":"https://api.github.com/repos/Humanitec/django-service-wizard/tags","blobs_url":"https://api.github.com/repos/Humanitec/django-service-wizard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Humanitec/django-service-wizard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Humanitec/django-service-wizard/git/refs{/sha}","trees_url":"https://api.github.com/repos/Humanitec/django-service-wizard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Humanitec/django-service-wizard/statuses/{sha}","languages_url":"https://api.github.com/repos/Humanitec/django-service-wizard/languages","stargazers_url":"https://api.github.com/repos/Humanitec/django-service-wizard/stargazers","contributors_url":"https://api.github.com/repos/Humanitec/django-service-wizard/contributors","subscribers_url":"https://api.github.com/repos/Humanitec/django-service-wizard/subscribers","subscription_url":"https://api.github.com/repos/Humanitec/django-service-wizard/subscription","commits_url":"https://api.github.com/repos/Humanitec/django-service-wizard/commits{/sha}","git_commits_url":"https://api.github.com/repos/Humanitec/django-service-wizard/git/commits{/sha}","comments_url":"https://api.github.com/repos/Humanitec/django-service-wizard/comments{/number}","issue_comment_url":"https://api.github.com/repos/Humanitec/django-service-wizard/issues/comments{/number}","contents_url":"https://api.github.com/repos/Humanitec/django-service-wizard/contents/{+path}","compare_url":"https://api.github.com/repos/Humanitec/django-service-wizard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Humanitec/django-service-wizard/merges","archive_url":"https://api.github.com/repos/Humanitec/django-service-wizard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Humanitec/django-service-wizard/downloads","issues_url":"https://api.github.com/repos/Humanitec/django-service-wizard/issues{/number}","pulls_url":"https://api.github.com/repos/Humanitec/django-service-wizard/pulls{/number}","milestones_url":"https://api.github.com/repos/Humanitec/django-service-wizard/milestones{/number}","notifications_url":"https://api.github.com/repos/Humanitec/django-service-wizard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Humanitec/django-service-wizard/labels{/name}","releases_url":"https://api.github.com/repos/Humanitec/django-service-wizard/releases{/id}","deployments_url":"https://api.github.com/repos/Humanitec/django-service-wizard/deployments","created_at":"2018-05-17T13:38:36Z","updated_at":"2018-08-03T13:44:14Z","pushed_at":"2018-08-06T11:03:49Z","git_url":"git://github.com/Humanitec/django-service-wizard.git","ssh_url":"git@github.com:Humanitec/django-service-wizard.git","clone_url":"https://github.com/Humanitec/django-service-wizard.git","svn_url":"https://github.com/Humanitec/django-service-wizard","homepage":"https://www.humanitec.com","size":68,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Humanitec/django-service-wizard/pulls/11"},"html":{"href":"https://github.com/Humanitec/django-service-wizard/pull/11"},"issue":{"href":"https://api.github.com/repos/Humanitec/django-service-wizard/issues/11"},"comments":{"href":"https://api.github.com/repos/Humanitec/django-service-wizard/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/Humanitec/django-service-wizard/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/Humanitec/django-service-wizard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Humanitec/django-service-wizard/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/Humanitec/django-service-wizard/statuses/c557886abf0e087b1a3f4b19ca3c795b09c21ae4"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"bogdangi"}}