{"action":"created","issue":{"url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/283","labels_url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/283/labels{/name}","comments_url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/283/comments","events_url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/283/events","html_url":"https://github.com/sameersbn/docker-gitlab/issues/283","id":64491618,"number":283,"title":"Adapt clone-template for different SSH port","user":{"login":"DeX3","id":439587,"avatar_url":"https://avatars.githubusercontent.com/u/439587?v=3","gravatar_id":"","url":"https://api.github.com/users/DeX3","html_url":"https://github.com/DeX3","followers_url":"https://api.github.com/users/DeX3/followers","following_url":"https://api.github.com/users/DeX3/following{/other_user}","gists_url":"https://api.github.com/users/DeX3/gists{/gist_id}","starred_url":"https://api.github.com/users/DeX3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeX3/subscriptions","organizations_url":"https://api.github.com/users/DeX3/orgs","repos_url":"https://api.github.com/users/DeX3/repos","events_url":"https://api.github.com/users/DeX3/events{/privacy}","received_events_url":"https://api.github.com/users/DeX3/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-26T10:32:08Z","updated_at":"2015-03-26T10:41:19Z","closed_at":"2015-03-26T10:41:19Z","body":"When a new project is created, users can see how to first clone it/push existing repos to it. Typically, gitlab suggests something along the following lines:\r\n\r\n    git remote add origin git@gitlab.lan:test/testproject.git\r\n    git push -u origin master\r\n\r\nHowever, because now that gitlab is not running directly on that host but inside a container, they would have to connect via a port other than the default SSH port. This means, that the template is incorrect. It ***should*** read:\r\n\r\n    git remote add origin ssh://git@gitlab.lan:10022/test/testproject.git\r\n    git push -u origin master\r\n\r\nOr have `10022` replaced with whatever `GITLAB_SSH_PORT` is configured. I've looked a bit through the gitlab source code, and there seems to be a configuration option related to it: https://github.com/gitlabhq/gitlabhq/blob/435128171ddf41025f410429b8a639a368e77582/lib/gitlab/backend/shell.rb#L235\r\n\r\nWould it be possible to incorporate this option into the image configuration as an environment variable?\r\n"},"comment":{"url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/comments/86446886","html_url":"https://github.com/sameersbn/docker-gitlab/issues/283#issuecomment-86446886","issue_url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/283","id":86446886,"user":{"login":"DeX3","id":439587,"avatar_url":"https://avatars.githubusercontent.com/u/439587?v=3","gravatar_id":"","url":"https://api.github.com/users/DeX3","html_url":"https://github.com/DeX3","followers_url":"https://api.github.com/users/DeX3/followers","following_url":"https://api.github.com/users/DeX3/following{/other_user}","gists_url":"https://api.github.com/users/DeX3/gists{/gist_id}","starred_url":"https://api.github.com/users/DeX3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeX3/subscriptions","organizations_url":"https://api.github.com/users/DeX3/orgs","repos_url":"https://api.github.com/users/DeX3/repos","events_url":"https://api.github.com/users/DeX3/events{/privacy}","received_events_url":"https://api.github.com/users/DeX3/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T10:41:19Z","updated_at":"2015-03-26T10:41:19Z","body":"Oh... I must've overlooked that - sorry."}}