{"action":"opened","issue":{"url":"https://api.github.com/repos/opencrowbar/core/issues/373","labels_url":"https://api.github.com/repos/opencrowbar/core/issues/373/labels{/name}","comments_url":"https://api.github.com/repos/opencrowbar/core/issues/373/comments","events_url":"https://api.github.com/repos/opencrowbar/core/issues/373/events","html_url":"https://github.com/opencrowbar/core/issues/373","id":54484673,"number":373,"title":"squid-in-a-can could be used to add a proxy for the user","user":{"login":"dudymas","id":928448,"avatar_url":"https://avatars.githubusercontent.com/u/928448?v=3","gravatar_id":"","url":"https://api.github.com/users/dudymas","html_url":"https://github.com/dudymas","followers_url":"https://api.github.com/users/dudymas/followers","following_url":"https://api.github.com/users/dudymas/following{/other_user}","gists_url":"https://api.github.com/users/dudymas/gists{/gist_id}","starred_url":"https://api.github.com/users/dudymas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dudymas/subscriptions","organizations_url":"https://api.github.com/users/dudymas/orgs","repos_url":"https://api.github.com/users/dudymas/repos","events_url":"https://api.github.com/users/dudymas/events{/privacy}","received_events_url":"https://api.github.com/users/dudymas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-15T18:20:19Z","updated_at":"2015-01-15T18:20:19Z","closed_at":null,"body":"This would be easy to add to either docker-admin or production.sh:\r\n\r\n- https://registry.hub.docker.com/u/jpetazzo/squid-in-a-can/\r\n\r\nThen you just add a very simple web worker that connects to docker with GET /events ... \r\n\r\n- if it sees 'create/start' and 'squid-in-a-box', it calls iptables and adds the proxy rule.\r\n- If it sees kill/stop/die/etc. and 'squid-in-a-box', it calls iptables and deletes the proxy rule.\r\n\r\nI'm kinda going to do this anyways... if you guys think it would help your work, I can massage the bash scripts I'm using at my job to add flags to docker-admin or production.sh\r\n\r\nThoughts?\r\n"}}