{"action":"created","comment":{"url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/pulls/comments/25574993","id":25574993,"diff_hunk":"@@ -3,3 +3,5 @@ layers/\n data/\n *.xml\n node_modules/\n+.vagrant/\n+Vagrantfile","path":".gitignore","position":5,"original_position":5,"commit_id":"49b4cbfcf2ccb0a89285c1c90946a3fab13e226c","original_commit_id":"c15af8fd9893b9421fda0647d4826977df860a39","user":{"login":"pnorman","id":1190866,"avatar_url":"https://avatars.githubusercontent.com/u/1190866?v=3","gravatar_id":"","url":"https://api.github.com/users/pnorman","html_url":"https://github.com/pnorman","followers_url":"https://api.github.com/users/pnorman/followers","following_url":"https://api.github.com/users/pnorman/following{/other_user}","gists_url":"https://api.github.com/users/pnorman/gists{/gist_id}","starred_url":"https://api.github.com/users/pnorman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnorman/subscriptions","organizations_url":"https://api.github.com/users/pnorman/orgs","repos_url":"https://api.github.com/users/pnorman/repos","events_url":"https://api.github.com/users/pnorman/events{/privacy}","received_events_url":"https://api.github.com/users/pnorman/received_events","type":"User","site_admin":false},"body":"it sounds like switching between branches might cause problems then?","created_at":"2015-03-02T01:40:41Z","updated_at":"2015-03-02T01:40:41Z","html_url":"https://github.com/gravitystorm/openstreetmap-carto/pull/1342#discussion_r25574993","pull_request_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/pulls/1342","_links":{"self":{"href":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/pulls/comments/25574993"},"html":{"href":"https://github.com/gravitystorm/openstreetmap-carto/pull/1342#discussion_r25574993"},"pull_request":{"href":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/pulls/1342"}}},"pull_request":{"url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/pulls/1342","id":30247570,"html_url":"https://github.com/gravitystorm/openstreetmap-carto/pull/1342","diff_url":"https://github.com/gravitystorm/openstreetmap-carto/pull/1342.diff","patch_url":"https://github.com/gravitystorm/openstreetmap-carto/pull/1342.patch","issue_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/issues/1342","number":1342,"state":"open","locked":false,"title":"Quick dev. environment using Vagrant & Salt","user":{"login":"thor","id":234489,"avatar_url":"https://avatars.githubusercontent.com/u/234489?v=3","gravatar_id":"","url":"https://api.github.com/users/thor","html_url":"https://github.com/thor","followers_url":"https://api.github.com/users/thor/followers","following_url":"https://api.github.com/users/thor/following{/other_user}","gists_url":"https://api.github.com/users/thor/gists{/gist_id}","starred_url":"https://api.github.com/users/thor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thor/subscriptions","organizations_url":"https://api.github.com/users/thor/orgs","repos_url":"https://api.github.com/users/thor/repos","events_url":"https://api.github.com/users/thor/events{/privacy}","received_events_url":"https://api.github.com/users/thor/received_events","type":"User","site_admin":false},"body":"Following straight from the commit:\r\n> Ubuntu 14.04.1 with osm2pgsql, postgis and kosmtik ready to use\r\n - Uses Vagrant to quickly create a VM based on Ubuntu 14.04.1 LTS\r\n    - Adjustable amounts of CPU cores and memory\r\n - Easily have your own kosmtik plugins ready if you want to start from scratch\r\n    - Sets up kosmtik as a service, so you can easily start/stop using $ service kosmtik <start/stop/status/restart>\r\n - Added .vagrant/ and Vagrantfile to the ignore list to avoid unintentional commits with edits\r\n - Does NOT import any .pbfs automatically, as it can quickly get messy\r\n   doing such. However, I've played around with it and it works -- as\r\n   long as you've got the memory and you're not importing overlapping\r\n   areas.\r\n - However, it does execute get-shapefiles for you -- just `vagrant up` or `vagrant provision`\r\n - Edit as you please and reload it for kosmtik to pick it up\r\n - All you need to do to get started is to import with osm2pgsql\r\n\r\nI queried @pnorman about this very briefly in #osm-dev at some point, and so here is a PR to see if there is any interest in adding this as part of the repo.\r\nThe benefits are mainly listed above, but the recap would be the following:\r\n  - No messing around with relatively long lists of instructions\r\n    - *The configuration is combined from switch2osm and the notepad with instructions that I've seen linked around here*\r\n  - Allows for a \"shared\" development environment\r\n    - *This is only to some degree; you all have vastly different HW requirements and desires for what and how to render, but it's an easy way to get an identical setup*\r\n  - Makes it a whole lot easier for people on Windows to join the party\r\n    - *I started it while I was using Windows myself, but even on any other distribution it's nice to not have to worry about the development environment too much. Note the .gitattributes addition is to avoid gits conversion of line endings for the shell scripts, so that errors don't occur when running i.e. `get-shapefiles.sh`*\r\n\r\nFor those of you not familiar with [Vagrant](http://docs.vagrantup.com/v2/getting-started/index.html), you won't be adding a whole VM to the repository -- just a configuration file for Vagrant and Salt roots for configuring the VM for osm2pgsql, kosmtik and postgis. (Though, not in _that_ order.) You can also clone my branch and simply run `vagrant up` once you've installed Vagrant on your computer, and have a look. \r\n\r\nUsage is currently as follows:\r\n1. If not already present, install Vagrant and VirtualBox.\r\n2. Clone the repository.\r\n3. If you'd like kosmtik plugins, edit the Vagrantile and add the ones you want.\r\n4. Run `vagrant up` from within the repository. \r\n5. Run `vagrant ssh` to SSH in, so that you can run your own `osm2pgsql` import. (Place any files in data/ and they'll be available at `/srv/openstreetmap-carto/data/` inside the VM.)\r\n6. Once data is imported, the map will magically be visible at http://127.0.0.1:6789.\r\n7. Ideally, edit stuff and see how simple it is to `vagrant destroy && vagrant up` if you want to recreate it.\r\n\r\nEither way, if it's not something for you folks, that's completely understandable: the PR addes one file to the root, as well as an entire folder containing 4 files. (These can be put elsewhere if desired.) Should it be something that is a bit too meta, then I'll just keep it separated in its own repository. However, at least for me it's really practical when I can clone a repo, run `vagrant up` and be at the finish line for what I need to contribute to a project. :sunny:\r\n\r\nIf there is an interest in it, but something is amiss, let me know and I'll try what I can to fix & improve it.","created_at":"2015-03-01T19:58:46Z","updated_at":"2015-03-02T01:40:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"250a01a099059289b83e661219c15bf523f5ea78","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/pulls/1342/commits","review_comments_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/pulls/1342/comments","review_comment_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/issues/1342/comments","statuses_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/statuses/49b4cbfcf2ccb0a89285c1c90946a3fab13e226c","head":{"label":"thor:vagrant","ref":"vagrant","sha":"49b4cbfcf2ccb0a89285c1c90946a3fab13e226c","user":{"login":"thor","id":234489,"avatar_url":"https://avatars.githubusercontent.com/u/234489?v=3","gravatar_id":"","url":"https://api.github.com/users/thor","html_url":"https://github.com/thor","followers_url":"https://api.github.com/users/thor/followers","following_url":"https://api.github.com/users/thor/following{/other_user}","gists_url":"https://api.github.com/users/thor/gists{/gist_id}","starred_url":"https://api.github.com/users/thor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thor/subscriptions","organizations_url":"https://api.github.com/users/thor/orgs","repos_url":"https://api.github.com/users/thor/repos","events_url":"https://api.github.com/users/thor/events{/privacy}","received_events_url":"https://api.github.com/users/thor/received_events","type":"User","site_admin":false},"repo":{"id":31503414,"name":"openstreetmap-carto","full_name":"thor/openstreetmap-carto","owner":{"login":"thor","id":234489,"avatar_url":"https://avatars.githubusercontent.com/u/234489?v=3","gravatar_id":"","url":"https://api.github.com/users/thor","html_url":"https://github.com/thor","followers_url":"https://api.github.com/users/thor/followers","following_url":"https://api.github.com/users/thor/following{/other_user}","gists_url":"https://api.github.com/users/thor/gists{/gist_id}","starred_url":"https://api.github.com/users/thor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thor/subscriptions","organizations_url":"https://api.github.com/users/thor/orgs","repos_url":"https://api.github.com/users/thor/repos","events_url":"https://api.github.com/users/thor/events{/privacy}","received_events_url":"https://api.github.com/users/thor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thor/openstreetmap-carto","description":"A project to re-implement the standard OpenStreetMap mapnik style, in CartoCSS","fork":true,"url":"https://api.github.com/repos/thor/openstreetmap-carto","forks_url":"https://api.github.com/repos/thor/openstreetmap-carto/forks","keys_url":"https://api.github.com/repos/thor/openstreetmap-carto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thor/openstreetmap-carto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thor/openstreetmap-carto/teams","hooks_url":"https://api.github.com/repos/thor/openstreetmap-carto/hooks","issue_events_url":"https://api.github.com/repos/thor/openstreetmap-carto/issues/events{/number}","events_url":"https://api.github.com/repos/thor/openstreetmap-carto/events","assignees_url":"https://api.github.com/repos/thor/openstreetmap-carto/assignees{/user}","branches_url":"https://api.github.com/repos/thor/openstreetmap-carto/branches{/branch}","tags_url":"https://api.github.com/repos/thor/openstreetmap-carto/tags","blobs_url":"https://api.github.com/repos/thor/openstreetmap-carto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thor/openstreetmap-carto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thor/openstreetmap-carto/git/refs{/sha}","trees_url":"https://api.github.com/repos/thor/openstreetmap-carto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thor/openstreetmap-carto/statuses/{sha}","languages_url":"https://api.github.com/repos/thor/openstreetmap-carto/languages","stargazers_url":"https://api.github.com/repos/thor/openstreetmap-carto/stargazers","contributors_url":"https://api.github.com/repos/thor/openstreetmap-carto/contributors","subscribers_url":"https://api.github.com/repos/thor/openstreetmap-carto/subscribers","subscription_url":"https://api.github.com/repos/thor/openstreetmap-carto/subscription","commits_url":"https://api.github.com/repos/thor/openstreetmap-carto/commits{/sha}","git_commits_url":"https://api.github.com/repos/thor/openstreetmap-carto/git/commits{/sha}","comments_url":"https://api.github.com/repos/thor/openstreetmap-carto/comments{/number}","issue_comment_url":"https://api.github.com/repos/thor/openstreetmap-carto/issues/comments{/number}","contents_url":"https://api.github.com/repos/thor/openstreetmap-carto/contents/{+path}","compare_url":"https://api.github.com/repos/thor/openstreetmap-carto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thor/openstreetmap-carto/merges","archive_url":"https://api.github.com/repos/thor/openstreetmap-carto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thor/openstreetmap-carto/downloads","issues_url":"https://api.github.com/repos/thor/openstreetmap-carto/issues{/number}","pulls_url":"https://api.github.com/repos/thor/openstreetmap-carto/pulls{/number}","milestones_url":"https://api.github.com/repos/thor/openstreetmap-carto/milestones{/number}","notifications_url":"https://api.github.com/repos/thor/openstreetmap-carto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thor/openstreetmap-carto/labels{/name}","releases_url":"https://api.github.com/repos/thor/openstreetmap-carto/releases{/id}","created_at":"2015-03-01T17:06:06Z","updated_at":"2015-03-01T17:06:07Z","pushed_at":"2015-03-01T22:12:35Z","git_url":"git://github.com/thor/openstreetmap-carto.git","ssh_url":"git@github.com:thor/openstreetmap-carto.git","clone_url":"https://github.com/thor/openstreetmap-carto.git","svn_url":"https://github.com/thor/openstreetmap-carto","homepage":null,"size":7444,"stargazers_count":0,"watchers_count":0,"language":"CartoCSS","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gravitystorm:master","ref":"master","sha":"cfb9e4219500235dae6c9d7f3853504088fde0a7","user":{"login":"gravitystorm","id":360803,"avatar_url":"https://avatars.githubusercontent.com/u/360803?v=3","gravatar_id":"","url":"https://api.github.com/users/gravitystorm","html_url":"https://github.com/gravitystorm","followers_url":"https://api.github.com/users/gravitystorm/followers","following_url":"https://api.github.com/users/gravitystorm/following{/other_user}","gists_url":"https://api.github.com/users/gravitystorm/gists{/gist_id}","starred_url":"https://api.github.com/users/gravitystorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gravitystorm/subscriptions","organizations_url":"https://api.github.com/users/gravitystorm/orgs","repos_url":"https://api.github.com/users/gravitystorm/repos","events_url":"https://api.github.com/users/gravitystorm/events{/privacy}","received_events_url":"https://api.github.com/users/gravitystorm/received_events","type":"User","site_admin":false},"repo":{"id":6707453,"name":"openstreetmap-carto","full_name":"gravitystorm/openstreetmap-carto","owner":{"login":"gravitystorm","id":360803,"avatar_url":"https://avatars.githubusercontent.com/u/360803?v=3","gravatar_id":"","url":"https://api.github.com/users/gravitystorm","html_url":"https://github.com/gravitystorm","followers_url":"https://api.github.com/users/gravitystorm/followers","following_url":"https://api.github.com/users/gravitystorm/following{/other_user}","gists_url":"https://api.github.com/users/gravitystorm/gists{/gist_id}","starred_url":"https://api.github.com/users/gravitystorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gravitystorm/subscriptions","organizations_url":"https://api.github.com/users/gravitystorm/orgs","repos_url":"https://api.github.com/users/gravitystorm/repos","events_url":"https://api.github.com/users/gravitystorm/events{/privacy}","received_events_url":"https://api.github.com/users/gravitystorm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gravitystorm/openstreetmap-carto","description":"A project to re-implement the standard OpenStreetMap mapnik style, in CartoCSS","fork":false,"url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto","forks_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/forks","keys_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/teams","hooks_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/hooks","issue_events_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/issues/events{/number}","events_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/events","assignees_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/assignees{/user}","branches_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/branches{/branch}","tags_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/tags","blobs_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/git/refs{/sha}","trees_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/statuses/{sha}","languages_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/languages","stargazers_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/stargazers","contributors_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/contributors","subscribers_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/subscribers","subscription_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/subscription","commits_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/commits{/sha}","git_commits_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/git/commits{/sha}","comments_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/comments{/number}","issue_comment_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/issues/comments{/number}","contents_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/contents/{+path}","compare_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/merges","archive_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/downloads","issues_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/issues{/number}","pulls_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/pulls{/number}","milestones_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/milestones{/number}","notifications_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/labels{/name}","releases_url":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/releases{/id}","created_at":"2012-11-15T16:06:16Z","updated_at":"2015-03-02T01:27:43Z","pushed_at":"2015-03-02T01:27:43Z","git_url":"git://github.com/gravitystorm/openstreetmap-carto.git","ssh_url":"git@github.com:gravitystorm/openstreetmap-carto.git","clone_url":"https://github.com/gravitystorm/openstreetmap-carto.git","svn_url":"https://github.com/gravitystorm/openstreetmap-carto","homepage":null,"size":7444,"stargazers_count":272,"watchers_count":272,"language":"CartoCSS","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":158,"mirror_url":null,"open_issues_count":354,"forks":158,"open_issues":354,"watchers":272,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/pulls/1342"},"html":{"href":"https://github.com/gravitystorm/openstreetmap-carto/pull/1342"},"issue":{"href":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/issues/1342"},"comments":{"href":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/issues/1342/comments"},"review_comments":{"href":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/pulls/1342/comments"},"review_comment":{"href":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/pulls/1342/commits"},"statuses":{"href":"https://api.github.com/repos/gravitystorm/openstreetmap-carto/statuses/49b4cbfcf2ccb0a89285c1c90946a3fab13e226c"}}}}