{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/pulls/2","id":209511616,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA5NTExNjE2","html_url":"https://github.com/cityofcapetown/docker_datascience-1/pull/2","diff_url":"https://github.com/cityofcapetown/docker_datascience-1/pull/2.diff","patch_url":"https://github.com/cityofcapetown/docker_datascience-1/pull/2.patch","issue_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/issues/2","number":2,"state":"open","locked":false,"title":"Update run.sh","user":{"login":"riazarbi","id":13433911,"node_id":"MDQ6VXNlcjEzNDMzOTEx","avatar_url":"https://avatars0.githubusercontent.com/u/13433911?v=4","gravatar_id":"","url":"https://api.github.com/users/riazarbi","html_url":"https://github.com/riazarbi","followers_url":"https://api.github.com/users/riazarbi/followers","following_url":"https://api.github.com/users/riazarbi/following{/other_user}","gists_url":"https://api.github.com/users/riazarbi/gists{/gist_id}","starred_url":"https://api.github.com/users/riazarbi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riazarbi/subscriptions","organizations_url":"https://api.github.com/users/riazarbi/orgs","repos_url":"https://api.github.com/users/riazarbi/repos","events_url":"https://api.github.com/users/riazarbi/events{/privacy}","received_events_url":"https://api.github.com/users/riazarbi/received_events","type":"User","site_admin":false},"body":"If I run \r\n\r\n'sudo docker run -it --rm -e NEWUSER=riaz -e PASSWD=riaz -e SHINY=yes -e RSTUDIO=yes -e JUPYTER=yes -p 8000:8000 -p 8787:8787 -p 3838:3838 ds6` \r\n\r\nfrom the command line it works. If I run \r\n\r\n`sudo docker run -d --rm -e NEWUSER=riaz -e PASSWD=riaz -e SHINY=yes -e RSTUDIO=yes -e JUPYTER=yes -p 8000:8000 -p 8787:8787 -p 3838:3838 ds6`\r\n\r\nfrom the command line the image exits.\r\n\r\nSo it seems that there is a difference in behaviour between the `it` flag and the `d` flag.\r\n\r\nThis behaviour is defined by the last line of the `run.sh` file. I've edited the `run.sh` file to stop piping jupyter server output to `/dev/null`. This is what the jupyter docker stacks do. \r\n\r\nA disadvantage of this is that jupyter is always on; we lose the ability to toggle it on and off, but it's a start.","created_at":"2018-08-20T12:54:48Z","updated_at":"2018-08-20T12:54:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/pulls/2/commits","review_comments_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/pulls/2/comments","review_comment_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/issues/2/comments","statuses_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/statuses/58362d938d65a613d3c08db36a5ab79154f2a737","head":{"label":"cityofcapetown:startup-experiment-1","ref":"startup-experiment-1","sha":"58362d938d65a613d3c08db36a5ab79154f2a737","user":{"login":"cityofcapetown","id":40786307,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwNzg2MzA3","avatar_url":"https://avatars0.githubusercontent.com/u/40786307?v=4","gravatar_id":"","url":"https://api.github.com/users/cityofcapetown","html_url":"https://github.com/cityofcapetown","followers_url":"https://api.github.com/users/cityofcapetown/followers","following_url":"https://api.github.com/users/cityofcapetown/following{/other_user}","gists_url":"https://api.github.com/users/cityofcapetown/gists{/gist_id}","starred_url":"https://api.github.com/users/cityofcapetown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cityofcapetown/subscriptions","organizations_url":"https://api.github.com/users/cityofcapetown/orgs","repos_url":"https://api.github.com/users/cityofcapetown/repos","events_url":"https://api.github.com/users/cityofcapetown/events{/privacy}","received_events_url":"https://api.github.com/users/cityofcapetown/received_events","type":"Organization","site_admin":false},"repo":{"id":145403570,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU0MDM1NzA=","name":"docker_datascience-1","full_name":"cityofcapetown/docker_datascience-1","owner":{"login":"cityofcapetown","id":40786307,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwNzg2MzA3","avatar_url":"https://avatars0.githubusercontent.com/u/40786307?v=4","gravatar_id":"","url":"https://api.github.com/users/cityofcapetown","html_url":"https://github.com/cityofcapetown","followers_url":"https://api.github.com/users/cityofcapetown/followers","following_url":"https://api.github.com/users/cityofcapetown/following{/other_user}","gists_url":"https://api.github.com/users/cityofcapetown/gists{/gist_id}","starred_url":"https://api.github.com/users/cityofcapetown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cityofcapetown/subscriptions","organizations_url":"https://api.github.com/users/cityofcapetown/orgs","repos_url":"https://api.github.com/users/cityofcapetown/repos","events_url":"https://api.github.com/users/cityofcapetown/events{/privacy}","received_events_url":"https://api.github.com/users/cityofcapetown/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cityofcapetown/docker_datascience-1","description":"A docker image that runs Jupyterhub, RStudio Server, Shiny Server and selected packages","fork":true,"url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1","forks_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/forks","keys_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/teams","hooks_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/hooks","issue_events_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/issues/events{/number}","events_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/events","assignees_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/assignees{/user}","branches_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/branches{/branch}","tags_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/tags","blobs_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/statuses/{sha}","languages_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/languages","stargazers_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/stargazers","contributors_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/contributors","subscribers_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/subscribers","subscription_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/subscription","commits_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/contents/{+path}","compare_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/merges","archive_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/downloads","issues_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/issues{/number}","pulls_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/pulls{/number}","milestones_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/milestones{/number}","notifications_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/labels{/name}","releases_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/releases{/id}","deployments_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/deployments","created_at":"2018-08-20T10:35:29Z","updated_at":"2018-08-20T10:35:31Z","pushed_at":"2018-08-20T12:52:45Z","git_url":"git://github.com/cityofcapetown/docker_datascience-1.git","ssh_url":"git@github.com:cityofcapetown/docker_datascience-1.git","clone_url":"https://github.com/cityofcapetown/docker_datascience-1.git","svn_url":"https://github.com/cityofcapetown/docker_datascience-1","homepage":null,"size":61,"stargazers_count":0,"watchers_count":0,"language":"Dockerfile","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":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"cityofcapetown:wip/py-geospatial","ref":"wip/py-geospatial","sha":"0184bc35e009c291c2491aa92608d3599717f953","user":{"login":"cityofcapetown","id":40786307,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwNzg2MzA3","avatar_url":"https://avatars0.githubusercontent.com/u/40786307?v=4","gravatar_id":"","url":"https://api.github.com/users/cityofcapetown","html_url":"https://github.com/cityofcapetown","followers_url":"https://api.github.com/users/cityofcapetown/followers","following_url":"https://api.github.com/users/cityofcapetown/following{/other_user}","gists_url":"https://api.github.com/users/cityofcapetown/gists{/gist_id}","starred_url":"https://api.github.com/users/cityofcapetown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cityofcapetown/subscriptions","organizations_url":"https://api.github.com/users/cityofcapetown/orgs","repos_url":"https://api.github.com/users/cityofcapetown/repos","events_url":"https://api.github.com/users/cityofcapetown/events{/privacy}","received_events_url":"https://api.github.com/users/cityofcapetown/received_events","type":"Organization","site_admin":false},"repo":{"id":145403570,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU0MDM1NzA=","name":"docker_datascience-1","full_name":"cityofcapetown/docker_datascience-1","owner":{"login":"cityofcapetown","id":40786307,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwNzg2MzA3","avatar_url":"https://avatars0.githubusercontent.com/u/40786307?v=4","gravatar_id":"","url":"https://api.github.com/users/cityofcapetown","html_url":"https://github.com/cityofcapetown","followers_url":"https://api.github.com/users/cityofcapetown/followers","following_url":"https://api.github.com/users/cityofcapetown/following{/other_user}","gists_url":"https://api.github.com/users/cityofcapetown/gists{/gist_id}","starred_url":"https://api.github.com/users/cityofcapetown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cityofcapetown/subscriptions","organizations_url":"https://api.github.com/users/cityofcapetown/orgs","repos_url":"https://api.github.com/users/cityofcapetown/repos","events_url":"https://api.github.com/users/cityofcapetown/events{/privacy}","received_events_url":"https://api.github.com/users/cityofcapetown/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cityofcapetown/docker_datascience-1","description":"A docker image that runs Jupyterhub, RStudio Server, Shiny Server and selected packages","fork":true,"url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1","forks_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/forks","keys_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/teams","hooks_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/hooks","issue_events_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/issues/events{/number}","events_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/events","assignees_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/assignees{/user}","branches_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/branches{/branch}","tags_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/tags","blobs_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/statuses/{sha}","languages_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/languages","stargazers_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/stargazers","contributors_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/contributors","subscribers_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/subscribers","subscription_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/subscription","commits_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/contents/{+path}","compare_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/merges","archive_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/downloads","issues_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/issues{/number}","pulls_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/pulls{/number}","milestones_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/milestones{/number}","notifications_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/labels{/name}","releases_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/releases{/id}","deployments_url":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/deployments","created_at":"2018-08-20T10:35:29Z","updated_at":"2018-08-20T10:35:31Z","pushed_at":"2018-08-20T12:52:45Z","git_url":"git://github.com/cityofcapetown/docker_datascience-1.git","ssh_url":"git@github.com:cityofcapetown/docker_datascience-1.git","clone_url":"https://github.com/cityofcapetown/docker_datascience-1.git","svn_url":"https://github.com/cityofcapetown/docker_datascience-1","homepage":null,"size":61,"stargazers_count":0,"watchers_count":0,"language":"Dockerfile","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":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/pulls/2"},"html":{"href":"https://github.com/cityofcapetown/docker_datascience-1/pull/2"},"issue":{"href":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/issues/2"},"comments":{"href":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/cityofcapetown/docker_datascience-1/statuses/58362d938d65a613d3c08db36a5ab79154f2a737"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":3,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"riazarbi"}}