{"action":"created","comment":{"url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/pulls/comments/77441530","id":77441530,"diff_hunk":"@@ -1,59 +0,0 @@\n-#!/bin/bash\n-\n-: ${SSH_KEY:=$HOME/ssh-private-rsa.key}\n-\n-# When mounting a volume; docker ( <= v1.10.3) does not provide means to set permissions on the mount point\n-# \"setup-workspace\" subcommand is a workaround for that\n-if [[ \"$1\" != setup-workspace && ( \\\n-    ! -w $HOME || \\\n-    ! -d $HOME/.ssh || \\\n-    ( -f \"${SSH_KEY}\" && ! -f $HOME/.ssh/id_rsa )\n-) ]]; then\n-    # we need root privileges to change permission of the directory\n-    if ! sudo \"$0\" setup-workspace; then\n-        echo setup-workspace failed\\; giving up.;\n-        exit 1;\n-    fi\n-fi\n-\n-case \"$1\" in\n-    setup-workspace)\n-        if [ ! -w $HOME ]; then\n-            # change permission; not recursive by purpose\n-            # recursive chown can take ages if the volume has a lot of files and directories\n-            exec chown migrator:migrator $HOME;\n-        fi\n-\n-        if [ ! -d $HOME/.ssh ]; then\n-            mkdir $HOME/.ssh &&\n-                chmod go-rwx $HOME/.ssh &&\n-                chown migrator:migrator $HOME/.ssh;\n-        fi\n-\n-        if [[ -f \"${SSH_KEY}\" && ! -f $HOME/.ssh/id_rsa ]]; then\n-            cp \"${SSH_KEY}\" $HOME/.ssh/id_rsa &&\n-                chown migrator:migrator $HOME/.ssh/id_rsa &&\n-                chmod go-rwx $HOME/.ssh/id_rsa;\n-        fi\n-        ;;\n-\n-    wait-up)","path":"entrypoint.sh","position":40,"original_position":40,"commit_id":"599604bb311fd70acd717ff2da8ef8749ba8e8f4","original_commit_id":"599604bb311fd70acd717ff2da8ef8749ba8e8f4","user":{"login":"codemedic","id":691011,"avatar_url":"https://avatars.githubusercontent.com/u/691011?v=3","gravatar_id":"","url":"https://api.github.com/users/codemedic","html_url":"https://github.com/codemedic","followers_url":"https://api.github.com/users/codemedic/followers","following_url":"https://api.github.com/users/codemedic/following{/other_user}","gists_url":"https://api.github.com/users/codemedic/gists{/gist_id}","starred_url":"https://api.github.com/users/codemedic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codemedic/subscriptions","organizations_url":"https://api.github.com/users/codemedic/orgs","repos_url":"https://api.github.com/users/codemedic/repos","events_url":"https://api.github.com/users/codemedic/events{/privacy}","received_events_url":"https://api.github.com/users/codemedic/received_events","type":"User","site_admin":false},"body":"Migrating a small project will be quick and in most cases this docker image can be run as a \"one-shot\" command. In cases where the project is huge, and if it has to run over a long period of time, say over a weekend or something, then it will be handy to be able to exec into a running container and setup the migration, with the help of `screen` and then detach from it.\r\n\r\nThats the way it was originally envisaged. Now that was with the limited understanding of docker and its way of working back then. Very likely that it is not right approach in docker land.\r\n\r\nObviously those aspects are the concern of the host machine; but what if it doesnt come with the right tools for it; i.e if it is CoreOS, which doesn't come with screen.\r\n\r\nOnly way I can see this new form working is if it is possible to `docker run` this image from within another container that has the right tools and has access to the host's docker daemon.\r\n\r\nAs we saw on Friday SZ had trouble with the long running migration. Would have helped if it was possible to run from within LDC.","created_at":"2016-09-03T19:04:12Z","updated_at":"2016-09-03T19:04:12Z","html_url":"https://github.com/redmatter/docker-svn2git-workspace/pull/1#discussion_r77441530","pull_request_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/pulls/comments/77441530"},"html":{"href":"https://github.com/redmatter/docker-svn2git-workspace/pull/1#discussion_r77441530"},"pull_request":{"href":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/pulls/1","id":83776695,"html_url":"https://github.com/redmatter/docker-svn2git-workspace/pull/1","diff_url":"https://github.com/redmatter/docker-svn2git-workspace/pull/1.diff","patch_url":"https://github.com/redmatter/docker-svn2git-workspace/pull/1.patch","issue_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/issues/1","number":1,"state":"open","locked":false,"title":"Feature/lego 21/modifications following review","user":{"login":"abulford","id":9605766,"avatar_url":"https://avatars.githubusercontent.com/u/9605766?v=3","gravatar_id":"","url":"https://api.github.com/users/abulford","html_url":"https://github.com/abulford","followers_url":"https://api.github.com/users/abulford/followers","following_url":"https://api.github.com/users/abulford/following{/other_user}","gists_url":"https://api.github.com/users/abulford/gists{/gist_id}","starred_url":"https://api.github.com/users/abulford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abulford/subscriptions","organizations_url":"https://api.github.com/users/abulford/orgs","repos_url":"https://api.github.com/users/abulford/repos","events_url":"https://api.github.com/users/abulford/events{/privacy}","received_events_url":"https://api.github.com/users/abulford/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-02T10:09:17Z","updated_at":"2016-09-03T19:04:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3f26e5a4f31f0b1271ed8dbe714dd7f67ce5c158","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/pulls/1/commits","review_comments_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/pulls/1/comments","review_comment_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/pulls/comments{/number}","comments_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/issues/1/comments","statuses_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/statuses/599604bb311fd70acd717ff2da8ef8749ba8e8f4","head":{"label":"redmatter:feature/LEGO-21/modifications_following_review","ref":"feature/LEGO-21/modifications_following_review","sha":"599604bb311fd70acd717ff2da8ef8749ba8e8f4","user":{"login":"redmatter","id":16340184,"avatar_url":"https://avatars.githubusercontent.com/u/16340184?v=3","gravatar_id":"","url":"https://api.github.com/users/redmatter","html_url":"https://github.com/redmatter","followers_url":"https://api.github.com/users/redmatter/followers","following_url":"https://api.github.com/users/redmatter/following{/other_user}","gists_url":"https://api.github.com/users/redmatter/gists{/gist_id}","starred_url":"https://api.github.com/users/redmatter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redmatter/subscriptions","organizations_url":"https://api.github.com/users/redmatter/orgs","repos_url":"https://api.github.com/users/redmatter/repos","events_url":"https://api.github.com/users/redmatter/events{/privacy}","received_events_url":"https://api.github.com/users/redmatter/received_events","type":"Organization","site_admin":false},"repo":{"id":54665999,"name":"docker-svn2git-workspace","full_name":"redmatter/docker-svn2git-workspace","owner":{"login":"redmatter","id":16340184,"avatar_url":"https://avatars.githubusercontent.com/u/16340184?v=3","gravatar_id":"","url":"https://api.github.com/users/redmatter","html_url":"https://github.com/redmatter","followers_url":"https://api.github.com/users/redmatter/followers","following_url":"https://api.github.com/users/redmatter/following{/other_user}","gists_url":"https://api.github.com/users/redmatter/gists{/gist_id}","starred_url":"https://api.github.com/users/redmatter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redmatter/subscriptions","organizations_url":"https://api.github.com/users/redmatter/orgs","repos_url":"https://api.github.com/users/redmatter/repos","events_url":"https://api.github.com/users/redmatter/events{/privacy}","received_events_url":"https://api.github.com/users/redmatter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/redmatter/docker-svn2git-workspace","description":"Sets up a workspace and tools needed to migrate from Subversion to Git","fork":false,"url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace","forks_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/forks","keys_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/teams","hooks_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/hooks","issue_events_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/issues/events{/number}","events_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/events","assignees_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/assignees{/user}","branches_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/branches{/branch}","tags_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/tags","blobs_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/git/refs{/sha}","trees_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/statuses/{sha}","languages_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/languages","stargazers_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/stargazers","contributors_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/contributors","subscribers_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/subscribers","subscription_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/subscription","commits_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/commits{/sha}","git_commits_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/git/commits{/sha}","comments_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/comments{/number}","issue_comment_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/issues/comments{/number}","contents_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/contents/{+path}","compare_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/merges","archive_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/downloads","issues_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/issues{/number}","pulls_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/pulls{/number}","milestones_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/milestones{/number}","notifications_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/labels{/name}","releases_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/releases{/id}","deployments_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/deployments","created_at":"2016-03-24T18:45:42Z","updated_at":"2016-03-24T19:54:59Z","pushed_at":"2016-09-02T10:09:17Z","git_url":"git://github.com/redmatter/docker-svn2git-workspace.git","ssh_url":"git@github.com:redmatter/docker-svn2git-workspace.git","clone_url":"https://github.com/redmatter/docker-svn2git-workspace.git","svn_url":"https://github.com/redmatter/docker-svn2git-workspace","homepage":null,"size":12,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"redmatter:master","ref":"master","sha":"57b8b9149f404f1af12056af6f0cc1870c3697b7","user":{"login":"redmatter","id":16340184,"avatar_url":"https://avatars.githubusercontent.com/u/16340184?v=3","gravatar_id":"","url":"https://api.github.com/users/redmatter","html_url":"https://github.com/redmatter","followers_url":"https://api.github.com/users/redmatter/followers","following_url":"https://api.github.com/users/redmatter/following{/other_user}","gists_url":"https://api.github.com/users/redmatter/gists{/gist_id}","starred_url":"https://api.github.com/users/redmatter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redmatter/subscriptions","organizations_url":"https://api.github.com/users/redmatter/orgs","repos_url":"https://api.github.com/users/redmatter/repos","events_url":"https://api.github.com/users/redmatter/events{/privacy}","received_events_url":"https://api.github.com/users/redmatter/received_events","type":"Organization","site_admin":false},"repo":{"id":54665999,"name":"docker-svn2git-workspace","full_name":"redmatter/docker-svn2git-workspace","owner":{"login":"redmatter","id":16340184,"avatar_url":"https://avatars.githubusercontent.com/u/16340184?v=3","gravatar_id":"","url":"https://api.github.com/users/redmatter","html_url":"https://github.com/redmatter","followers_url":"https://api.github.com/users/redmatter/followers","following_url":"https://api.github.com/users/redmatter/following{/other_user}","gists_url":"https://api.github.com/users/redmatter/gists{/gist_id}","starred_url":"https://api.github.com/users/redmatter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redmatter/subscriptions","organizations_url":"https://api.github.com/users/redmatter/orgs","repos_url":"https://api.github.com/users/redmatter/repos","events_url":"https://api.github.com/users/redmatter/events{/privacy}","received_events_url":"https://api.github.com/users/redmatter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/redmatter/docker-svn2git-workspace","description":"Sets up a workspace and tools needed to migrate from Subversion to Git","fork":false,"url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace","forks_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/forks","keys_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/teams","hooks_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/hooks","issue_events_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/issues/events{/number}","events_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/events","assignees_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/assignees{/user}","branches_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/branches{/branch}","tags_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/tags","blobs_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/git/refs{/sha}","trees_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/statuses/{sha}","languages_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/languages","stargazers_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/stargazers","contributors_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/contributors","subscribers_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/subscribers","subscription_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/subscription","commits_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/commits{/sha}","git_commits_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/git/commits{/sha}","comments_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/comments{/number}","issue_comment_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/issues/comments{/number}","contents_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/contents/{+path}","compare_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/merges","archive_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/downloads","issues_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/issues{/number}","pulls_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/pulls{/number}","milestones_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/milestones{/number}","notifications_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/labels{/name}","releases_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/releases{/id}","deployments_url":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/deployments","created_at":"2016-03-24T18:45:42Z","updated_at":"2016-03-24T19:54:59Z","pushed_at":"2016-09-02T10:09:17Z","git_url":"git://github.com/redmatter/docker-svn2git-workspace.git","ssh_url":"git@github.com:redmatter/docker-svn2git-workspace.git","clone_url":"https://github.com/redmatter/docker-svn2git-workspace.git","svn_url":"https://github.com/redmatter/docker-svn2git-workspace","homepage":null,"size":12,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/pulls/1"},"html":{"href":"https://github.com/redmatter/docker-svn2git-workspace/pull/1"},"issue":{"href":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/issues/1"},"comments":{"href":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/redmatter/docker-svn2git-workspace/statuses/599604bb311fd70acd717ff2da8ef8749ba8e8f4"}}}}
{"actor":{"display_login":"codemedic"}}