{"action":"created","issue":{"url":"https://api.github.com/repos/weavejester/environ/issues/62","repository_url":"https://api.github.com/repos/weavejester/environ","labels_url":"https://api.github.com/repos/weavejester/environ/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/weavejester/environ/issues/62/comments","events_url":"https://api.github.com/repos/weavejester/environ/issues/62/events","html_url":"https://github.com/weavejester/environ/pull/62","id":178722150,"number":62,"title":"read .lein-docker-env file if present","user":{"login":"rsslldnphy","id":1231200,"avatar_url":"https://avatars.githubusercontent.com/u/1231200?v=3","gravatar_id":"","url":"https://api.github.com/users/rsslldnphy","html_url":"https://github.com/rsslldnphy","followers_url":"https://api.github.com/users/rsslldnphy/followers","following_url":"https://api.github.com/users/rsslldnphy/following{/other_user}","gists_url":"https://api.github.com/users/rsslldnphy/gists{/gist_id}","starred_url":"https://api.github.com/users/rsslldnphy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsslldnphy/subscriptions","organizations_url":"https://api.github.com/users/rsslldnphy/orgs","repos_url":"https://api.github.com/users/rsslldnphy/repos","events_url":"https://api.github.com/users/rsslldnphy/events{/privacy}","received_events_url":"https://api.github.com/users/rsslldnphy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-22T21:14:36Z","updated_at":"2016-09-22T23:19:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/weavejester/environ/pulls/62","html_url":"https://github.com/weavejester/environ/pull/62","diff_url":"https://github.com/weavejester/environ/pull/62.diff","patch_url":"https://github.com/weavejester/environ/pull/62.patch"},"body":"Hi - I don't really expect you to merge this PR as is, it's more intended as a way to ask what the best way to approach getting something like this into environ would be.\r\n\r\nI'm putting together a small leiningen plugin, [lein-docker-compose](https://github.com/rsslldnphy/lein-docker-compose) that reads a project's `docker-compose.yml`, discovers what ports the services in them have been mapped to, and adds these port mappings to a `.lein-docker-env` file in the same format as `.lein-env`, with the intention of having environ pick them up and add them to `env`.\r\n\r\nI'm guessing you probably don't want to litter environ with random `.lein-*-env` files to support different projects. But if there was a neat way to allow arbitrary user-defined extra `-env` files, would that be something you'd be interested in supporting? Not sure exactly where you'd set up that user-defined setting though... Or is there an easier/better way to achieve what I'm after?\r\n\r\nThanks,\r\n\r\nRussell"},"comment":{"url":"https://api.github.com/repos/weavejester/environ/issues/comments/249055814","html_url":"https://github.com/weavejester/environ/pull/62#issuecomment-249055814","issue_url":"https://api.github.com/repos/weavejester/environ/issues/62","id":249055814,"user":{"login":"weavejester","id":8780,"avatar_url":"https://avatars.githubusercontent.com/u/8780?v=3","gravatar_id":"","url":"https://api.github.com/users/weavejester","html_url":"https://github.com/weavejester","followers_url":"https://api.github.com/users/weavejester/followers","following_url":"https://api.github.com/users/weavejester/following{/other_user}","gists_url":"https://api.github.com/users/weavejester/gists{/gist_id}","starred_url":"https://api.github.com/users/weavejester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weavejester/subscriptions","organizations_url":"https://api.github.com/users/weavejester/orgs","repos_url":"https://api.github.com/users/weavejester/repos","events_url":"https://api.github.com/users/weavejester/events{/privacy}","received_events_url":"https://api.github.com/users/weavejester/received_events","type":"User","site_admin":false},"created_at":"2016-09-22T23:19:23Z","updated_at":"2016-09-22T23:19:23Z","body":"Why not use Leiningen middleware for this?"}}
{"actor":{"display_login":"weavejester"}}