{"action":"created","issue":{"url":"https://api.github.com/repos/taskcluster/taskcluster-tools/issues/11","labels_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/issues/11/comments","events_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/issues/11/events","html_url":"https://github.com/taskcluster/taskcluster-tools/pull/11","id":74555191,"number":11,"title":"Hack to infer a script for running a task locally","user":{"login":"jonasfj","id":149732,"avatar_url":"https://avatars.githubusercontent.com/u/149732?v=3","gravatar_id":"","url":"https://api.github.com/users/jonasfj","html_url":"https://github.com/jonasfj","followers_url":"https://api.github.com/users/jonasfj/followers","following_url":"https://api.github.com/users/jonasfj/following{/other_user}","gists_url":"https://api.github.com/users/jonasfj/gists{/gist_id}","starred_url":"https://api.github.com/users/jonasfj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonasfj/subscriptions","organizations_url":"https://api.github.com/users/jonasfj/orgs","repos_url":"https://api.github.com/users/jonasfj/repos","events_url":"https://api.github.com/users/jonasfj/events{/privacy}","received_events_url":"https://api.github.com/users/jonasfj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"gregarndt","id":2592630,"avatar_url":"https://avatars.githubusercontent.com/u/2592630?v=3","gravatar_id":"","url":"https://api.github.com/users/gregarndt","html_url":"https://github.com/gregarndt","followers_url":"https://api.github.com/users/gregarndt/followers","following_url":"https://api.github.com/users/gregarndt/following{/other_user}","gists_url":"https://api.github.com/users/gregarndt/gists{/gist_id}","starred_url":"https://api.github.com/users/gregarndt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregarndt/subscriptions","organizations_url":"https://api.github.com/users/gregarndt/orgs","repos_url":"https://api.github.com/users/gregarndt/repos","events_url":"https://api.github.com/users/gregarndt/events{/privacy}","received_events_url":"https://api.github.com/users/gregarndt/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-05-09T01:40:11Z","updated_at":"2015-05-11T12:45:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/taskcluster/taskcluster-tools/pulls/11","html_url":"https://github.com/taskcluster/taskcluster-tools/pull/11","diff_url":"https://github.com/taskcluster/taskcluster-tools/pull/11.diff","patch_url":"https://github.com/taskcluster/taskcluster-tools/pull/11.patch"},"body":"Example:\r\nhttp://postimg.org/image/kxmhmhyhj/\r\n\r\n@gregarndt, quick review... check if what I'm doing here is crazy...\r\nIf you have a clue about how to illustrate usage of `--link` for:\r\n * taskclusterProxy\r\n * testdroidProxy\r\n * balrogVPNProxy\r\nFor example which docker images to use and how to inject credentials into them that would be awesome.\r\n\r\nObviously, we can display credentials here :)\r\nBut we can show that they are inject by env variables, example:\r\n```bash\r\ndocker run -d \\\r\n  --name balrog-vpn-proxy \\\r\n  -e PWD=$MY_VPN_PASSWORD \\\r\n  taskcluster/balrogvpnimage:0.2.1 \\\r\n ;\r\n\r\ndocker run -ti --link balrog-vpn-proxy ... . .. # all the things from below...\r\n```\r\n\r\n@gregarndt, also on a slightly crazy note...\r\nWould it be completely insane if every instance of docker-worker uploaded a javascript file to:\r\n`references.taskcluster.net/workers/<provisionerId>/<workerId>/run-locally.js`\r\n\r\nSuch that we can include that file on tools.taskcluster.net and use it to generate the illustrative script.\r\nI say illustrative because it's hard to generate something that always works, but if we could just come somewhat close that would really nice.\r\nObviously, if using something like a special loopback video device the script returned might include a short explanation saying that you'll need to configure this very complicated thing first, he he :)\r\n\r\n-----\r\nI think that even if people don't use this it's very educational, in giving a quick idea of how this all works."},"comment":{"url":"https://api.github.com/repos/taskcluster/taskcluster-tools/issues/comments/100894337","html_url":"https://github.com/taskcluster/taskcluster-tools/pull/11#issuecomment-100894337","issue_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/issues/11","id":100894337,"user":{"login":"gregarndt","id":2592630,"avatar_url":"https://avatars.githubusercontent.com/u/2592630?v=3","gravatar_id":"","url":"https://api.github.com/users/gregarndt","html_url":"https://github.com/gregarndt","followers_url":"https://api.github.com/users/gregarndt/followers","following_url":"https://api.github.com/users/gregarndt/following{/other_user}","gists_url":"https://api.github.com/users/gregarndt/gists{/gist_id}","starred_url":"https://api.github.com/users/gregarndt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregarndt/subscriptions","organizations_url":"https://api.github.com/users/gregarndt/orgs","repos_url":"https://api.github.com/users/gregarndt/repos","events_url":"https://api.github.com/users/gregarndt/events{/privacy}","received_events_url":"https://api.github.com/users/gregarndt/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T12:45:02Z","updated_at":"2015-05-11T12:45:02Z","body":"Regarding the JS file and setup of loopback devices: I'm all for the code to run it locally living closest to the worker that actually does the work, that doesn't worry me much.  We have a vagrant file part of docker-worker now that has the video and audio loopback devices created already.  They could just `vagrant ssh` into the instance and run the stuff in there."}}