{"action":"created","issue":{"url":"https://api.github.com/repos/tailhook/vagga/issues/269","repository_url":"https://api.github.com/repos/tailhook/vagga","labels_url":"https://api.github.com/repos/tailhook/vagga/issues/269/labels{/name}","comments_url":"https://api.github.com/repos/tailhook/vagga/issues/269/comments","events_url":"https://api.github.com/repos/tailhook/vagga/issues/269/events","html_url":"https://github.com/tailhook/vagga/issues/269","id":158579256,"number":269,"title":"Running vagga in docker for mac","user":{"login":"tailhook","id":321799,"avatar_url":"https://avatars.githubusercontent.com/u/321799?v=3","gravatar_id":"","url":"https://api.github.com/users/tailhook","html_url":"https://github.com/tailhook","followers_url":"https://api.github.com/users/tailhook/followers","following_url":"https://api.github.com/users/tailhook/following{/other_user}","gists_url":"https://api.github.com/users/tailhook/gists{/gist_id}","starred_url":"https://api.github.com/users/tailhook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tailhook/subscriptions","organizations_url":"https://api.github.com/users/tailhook/orgs","repos_url":"https://api.github.com/users/tailhook/repos","events_url":"https://api.github.com/users/tailhook/events{/privacy}","received_events_url":"https://api.github.com/users/tailhook/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-05T22:43:55Z","updated_at":"2016-06-06T07:29:01Z","closed_at":null,"body":"Assuming you have a docker set up, you can run vagga in docker with the\r\nfollowing command-line:\r\n\r\n    docker run --volume=$(pwd):/work --workdir=/work --privileged \\\r\n        -i -t --rm tailhook/vagga:latest \\\r\n        /vagga/bin/vagga --ignore-owner-check whateever vagga command\r\n\r\nTo make it easier to use, you should add the alias to your `~/.bashrc`:\r\n\r\n    alias vagga='docker run --volume=$(pwd):/work --workdir=/work --privileged \\\r\n        -i -t --rm tailhook/vagga:latest \\\r\n        /vagga/bin/vagga --ignore-owner-check whateever vagga'\r\n\r\nThen you can run vagga just by running as always:\r\n\r\n    vagga command\r\n\r\nHowever, this will probably not work in docker for the following reasons (simiarly to vagrant issues):\r\n\r\n1. [ ] Filesystem in .vagga might be not support hardlinks, or it might not be efficient to store images directly in host system (which we do when mount `/work`)\r\n2. [ ] Images will not be cached, we need to figure out a good place to put container caches (can we make a volume for that?) should it be the data container or something like this?\r\n3. [ ] We need to figure out userid which owns files inside the docker for mac container, so we can remove `--ignore-owner-check` (on the other side I'm assuming that even files owned by root will be written as normal user in OS X)\r\n4. [ ] Any other usability issues (hanging processes? leftover images?)\r\n5. [ ] Any other issues\r\n"},"comment":{"url":"https://api.github.com/repos/tailhook/vagga/issues/comments/223886695","html_url":"https://github.com/tailhook/vagga/issues/269#issuecomment-223886695","issue_url":"https://api.github.com/repos/tailhook/vagga/issues/269","id":223886695,"user":{"login":"tailhook","id":321799,"avatar_url":"https://avatars.githubusercontent.com/u/321799?v=3","gravatar_id":"","url":"https://api.github.com/users/tailhook","html_url":"https://github.com/tailhook","followers_url":"https://api.github.com/users/tailhook/followers","following_url":"https://api.github.com/users/tailhook/following{/other_user}","gists_url":"https://api.github.com/users/tailhook/gists{/gist_id}","starred_url":"https://api.github.com/users/tailhook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tailhook/subscriptions","organizations_url":"https://api.github.com/users/tailhook/orgs","repos_url":"https://api.github.com/users/tailhook/repos","events_url":"https://api.github.com/users/tailhook/events{/privacy}","received_events_url":"https://api.github.com/users/tailhook/received_events","type":"User","site_admin":false},"created_at":"2016-06-06T07:29:01Z","updated_at":"2016-06-06T07:29:01Z","body":"Sure. Thanks!"}}
{"actor":{"display_login":"tailhook"}}