{"action":"created","issue":{"url":"https://api.github.com/repos/SonarSource/docker-sonarqube/issues/36","repository_url":"https://api.github.com/repos/SonarSource/docker-sonarqube","labels_url":"https://api.github.com/repos/SonarSource/docker-sonarqube/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/SonarSource/docker-sonarqube/issues/36/comments","events_url":"https://api.github.com/repos/SonarSource/docker-sonarqube/issues/36/events","html_url":"https://github.com/SonarSource/docker-sonarqube/pull/36","id":165451334,"number":36,"title":"move run script COPY to allow for better volume mounting","user":{"login":"Skilgarriff","id":9666345,"avatar_url":"https://avatars.githubusercontent.com/u/9666345?v=3","gravatar_id":"","url":"https://api.github.com/users/Skilgarriff","html_url":"https://github.com/Skilgarriff","followers_url":"https://api.github.com/users/Skilgarriff/followers","following_url":"https://api.github.com/users/Skilgarriff/following{/other_user}","gists_url":"https://api.github.com/users/Skilgarriff/gists{/gist_id}","starred_url":"https://api.github.com/users/Skilgarriff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skilgarriff/subscriptions","organizations_url":"https://api.github.com/users/Skilgarriff/orgs","repos_url":"https://api.github.com/users/Skilgarriff/repos","events_url":"https://api.github.com/users/Skilgarriff/events{/privacy}","received_events_url":"https://api.github.com/users/Skilgarriff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"Godin","id":138671,"avatar_url":"https://avatars.githubusercontent.com/u/138671?v=3","gravatar_id":"","url":"https://api.github.com/users/Godin","html_url":"https://github.com/Godin","followers_url":"https://api.github.com/users/Godin/followers","following_url":"https://api.github.com/users/Godin/following{/other_user}","gists_url":"https://api.github.com/users/Godin/gists{/gist_id}","starred_url":"https://api.github.com/users/Godin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Godin/subscriptions","organizations_url":"https://api.github.com/users/Godin/orgs","repos_url":"https://api.github.com/users/Godin/repos","events_url":"https://api.github.com/users/Godin/events{/privacy}","received_events_url":"https://api.github.com/users/Godin/received_events","type":"User","site_admin":false},"assignees":[{"login":"Godin","id":138671,"avatar_url":"https://avatars.githubusercontent.com/u/138671?v=3","gravatar_id":"","url":"https://api.github.com/users/Godin","html_url":"https://github.com/Godin","followers_url":"https://api.github.com/users/Godin/followers","following_url":"https://api.github.com/users/Godin/following{/other_user}","gists_url":"https://api.github.com/users/Godin/gists{/gist_id}","starred_url":"https://api.github.com/users/Godin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Godin/subscriptions","organizations_url":"https://api.github.com/users/Godin/orgs","repos_url":"https://api.github.com/users/Godin/repos","events_url":"https://api.github.com/users/Godin/events{/privacy}","received_events_url":"https://api.github.com/users/Godin/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/SonarSource/docker-sonarqube/milestones/1","html_url":"https://github.com/SonarSource/docker-sonarqube/milestones/waiting-for-contributor","labels_url":"https://api.github.com/repos/SonarSource/docker-sonarqube/milestones/1/labels","id":1614284,"number":1,"title":"waiting-for-contributor","description":"","creator":{"login":"Godin","id":138671,"avatar_url":"https://avatars.githubusercontent.com/u/138671?v=3","gravatar_id":"","url":"https://api.github.com/users/Godin","html_url":"https://github.com/Godin","followers_url":"https://api.github.com/users/Godin/followers","following_url":"https://api.github.com/users/Godin/following{/other_user}","gists_url":"https://api.github.com/users/Godin/gists{/gist_id}","starred_url":"https://api.github.com/users/Godin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Godin/subscriptions","organizations_url":"https://api.github.com/users/Godin/orgs","repos_url":"https://api.github.com/users/Godin/repos","events_url":"https://api.github.com/users/Godin/events{/privacy}","received_events_url":"https://api.github.com/users/Godin/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":0,"state":"open","created_at":"2016-03-01T07:58:40Z","updated_at":"2016-07-24T19:43:17Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-07-14T00:29:14Z","updated_at":"2016-07-26T21:51:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/SonarSource/docker-sonarqube/pulls/36","html_url":"https://github.com/SonarSource/docker-sonarqube/pull/36","diff_url":"https://github.com/SonarSource/docker-sonarqube/pull/36.diff","patch_url":"https://github.com/SonarSource/docker-sonarqube/pull/36.patch"},"body":"What this pull request does is simply move where the run script is COPYed into the container. I was attempting to run this container by simply mounting the volume /opt/sonarqube instead of all of the smaller suggested volumes. This is because on a kubernetes cluster it is infeasible to spin up seperate architecture for each small volume if we want persistance, thus I thought it would make more sense to simple mount one volume. \r\n\r\nThe issue is in the order of events. A volume mount wipes anything that is already there thus:\r\nCOPY to /opt/sonarqube/bin\r\nVolume is mounted -> /opt/sonarqube is wiped\r\nENTRYPOINT is attempted to be run -> run script no longer exists. \r\n\r\nBy moving the run script outside of the /opt/sonarqube directory then it can survive a broader volume mount. "},"comment":{"url":"https://api.github.com/repos/SonarSource/docker-sonarqube/issues/comments/235417014","html_url":"https://github.com/SonarSource/docker-sonarqube/pull/36#issuecomment-235417014","issue_url":"https://api.github.com/repos/SonarSource/docker-sonarqube/issues/36","id":235417014,"user":{"login":"Godin","id":138671,"avatar_url":"https://avatars.githubusercontent.com/u/138671?v=3","gravatar_id":"","url":"https://api.github.com/users/Godin","html_url":"https://github.com/Godin","followers_url":"https://api.github.com/users/Godin/followers","following_url":"https://api.github.com/users/Godin/following{/other_user}","gists_url":"https://api.github.com/users/Godin/gists{/gist_id}","starred_url":"https://api.github.com/users/Godin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Godin/subscriptions","organizations_url":"https://api.github.com/users/Godin/orgs","repos_url":"https://api.github.com/users/Godin/repos","events_url":"https://api.github.com/users/Godin/events{/privacy}","received_events_url":"https://api.github.com/users/Godin/received_events","type":"User","site_admin":false},"created_at":"2016-07-26T21:51:30Z","updated_at":"2016-07-26T21:51:30Z","body":"We are going to roll out PR with SonarQube 5.6.1 for Docker Hub, and this is a good opportunity to include this change, if there are still demand. So @Skilgarriff is there something I can do to help you to address raised questions to finalize this PR?"}}
{"actor":{"display_login":"Godin"}}