{"action":"created","issue":{"url":"https://api.github.com/repos/ceph/ceph-docker/issues/399","repository_url":"https://api.github.com/repos/ceph/ceph-docker","labels_url":"https://api.github.com/repos/ceph/ceph-docker/issues/399/labels{/name}","comments_url":"https://api.github.com/repos/ceph/ceph-docker/issues/399/comments","events_url":"https://api.github.com/repos/ceph/ceph-docker/issues/399/events","html_url":"https://github.com/ceph/ceph-docker/issues/399","id":183791616,"number":399,"title":"add a \"marking\" string at the end of all entrypoint scripts","user":{"login":"alfredodeza","id":317847,"avatar_url":"https://avatars.githubusercontent.com/u/317847?v=3","gravatar_id":"","url":"https://api.github.com/users/alfredodeza","html_url":"https://github.com/alfredodeza","followers_url":"https://api.github.com/users/alfredodeza/followers","following_url":"https://api.github.com/users/alfredodeza/following{/other_user}","gists_url":"https://api.github.com/users/alfredodeza/gists{/gist_id}","starred_url":"https://api.github.com/users/alfredodeza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfredodeza/subscriptions","organizations_url":"https://api.github.com/users/alfredodeza/orgs","repos_url":"https://api.github.com/users/alfredodeza/repos","events_url":"https://api.github.com/users/alfredodeza/events{/privacy}","received_events_url":"https://api.github.com/users/alfredodeza/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-10-18T20:17:30Z","updated_at":"2016-10-25T12:10:47Z","closed_at":null,"body":"The docker API does not block waiting on an entry script being fully executed, this causes an issue when trying to bring up a container, docker reporting that the container is running correctly, then the entry point script runs and detects some input is invalid and breaks the container.\r\n\r\nThat scenario is impossible to deal with programmatically, because we don't know how long will the entry script will take to complete, and nothing in the Docker API tells us that the entry point script is being executed (or at what point of execution it is).\r\n\r\nSince we do get access to `stderr` and `stdout` when starting a container, we can easily check for a string at the very end of the entry point script. Something like:\r\n\r\n    SUCCESS\r\n\r\nAs the very last line would work."},"comment":{"url":"https://api.github.com/repos/ceph/ceph-docker/issues/comments/256017232","html_url":"https://github.com/ceph/ceph-docker/issues/399#issuecomment-256017232","issue_url":"https://api.github.com/repos/ceph/ceph-docker/issues/399","id":256017232,"user":{"login":"leseb","id":912735,"avatar_url":"https://avatars.githubusercontent.com/u/912735?v=3","gravatar_id":"","url":"https://api.github.com/users/leseb","html_url":"https://github.com/leseb","followers_url":"https://api.github.com/users/leseb/followers","following_url":"https://api.github.com/users/leseb/following{/other_user}","gists_url":"https://api.github.com/users/leseb/gists{/gist_id}","starred_url":"https://api.github.com/users/leseb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leseb/subscriptions","organizations_url":"https://api.github.com/users/leseb/orgs","repos_url":"https://api.github.com/users/leseb/repos","events_url":"https://api.github.com/users/leseb/events{/privacy}","received_events_url":"https://api.github.com/users/leseb/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T12:10:47Z","updated_at":"2016-10-25T12:10:47Z","body":"That makes me thing that entry points are too silent and they are hard to debug so after adding the SUCCESS we can potentially start to add some log info. Waiting for your PR :)"}}
{"actor":{"display_login":"leseb"}}