{"action":"created","issue":{"url":"https://api.github.com/repos/docker/compose/issues/551","labels_url":"https://api.github.com/repos/docker/compose/issues/551/labels{/name}","comments_url":"https://api.github.com/repos/docker/compose/issues/551/comments","events_url":"https://api.github.com/repos/docker/compose/issues/551/events","html_url":"https://github.com/docker/compose/issues/551","id":46135229,"number":551,"title":"Allow forwarding SSH agent in fig","user":{"login":"clifton","id":14217,"avatar_url":"https://avatars.githubusercontent.com/u/14217?v=3","gravatar_id":"","url":"https://api.github.com/users/clifton","html_url":"https://github.com/clifton","followers_url":"https://api.github.com/users/clifton/followers","following_url":"https://api.github.com/users/clifton/following{/other_user}","gists_url":"https://api.github.com/users/clifton/gists{/gist_id}","starred_url":"https://api.github.com/users/clifton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clifton/subscriptions","organizations_url":"https://api.github.com/users/clifton/orgs","repos_url":"https://api.github.com/users/clifton/repos","events_url":"https://api.github.com/users/clifton/events{/privacy}","received_events_url":"https://api.github.com/users/clifton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2014-10-17T19:29:18Z","updated_at":"2015-06-08T15:47:24Z","closed_at":null,"body":"What's the best practice on cloning private repos (e.g. gems or npm modules)? Currently, I'd need to add my private ssh keys into the repo via `volumes` in fig.yml. Is there a better way?\r\n\r\nI'd think the optimal way of handling this would be to forward the ssh agent. Perhaps have an option in the fig.yml for doing that?\r\n\r\nExample: https://gist.github.com/d11wtq/8699521"},"comment":{"url":"https://api.github.com/repos/docker/compose/issues/comments/110050150","html_url":"https://github.com/docker/compose/issues/551#issuecomment-110050150","issue_url":"https://api.github.com/repos/docker/compose/issues/551","id":110050150,"user":{"login":"clifton","id":14217,"avatar_url":"https://avatars.githubusercontent.com/u/14217?v=3","gravatar_id":"","url":"https://api.github.com/users/clifton","html_url":"https://github.com/clifton","followers_url":"https://api.github.com/users/clifton/followers","following_url":"https://api.github.com/users/clifton/following{/other_user}","gists_url":"https://api.github.com/users/clifton/gists{/gist_id}","starred_url":"https://api.github.com/users/clifton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clifton/subscriptions","organizations_url":"https://api.github.com/users/clifton/orgs","repos_url":"https://api.github.com/users/clifton/repos","events_url":"https://api.github.com/users/clifton/events{/privacy}","received_events_url":"https://api.github.com/users/clifton/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T15:47:24Z","updated_at":"2015-06-08T15:47:24Z","body":"@djhi, in our Vagrantfile we have\r\n\r\n```ruby\r\n  config.trigger.after [:up, :reload] do\r\n    command = %Q(vagrant ssh -- -t 'ln -sf `ls -d /tmp/ssh*/* | head -n 1` /tmp/authsock; sh')\r\n    pid = Process.spawn(command, out: '/dev/null', err: '/dev/null')\r\n    Process.detach(pid)\r\n  end\r\n```\r\n\r\n```yaml\r\nweb:\r\n  volumes:\r\n    - /tmp:/tmp\r\n  environment:\r\n    SSH_AUTH_SOCK: /tmp/authsock\r\n```"}}