{"action":"created","issue":{"url":"https://api.github.com/repos/flapdoodle-oss/de.flapdoodle.embed.mongo/issues/177","repository_url":"https://api.github.com/repos/flapdoodle-oss/de.flapdoodle.embed.mongo","labels_url":"https://api.github.com/repos/flapdoodle-oss/de.flapdoodle.embed.mongo/issues/177/labels{/name}","comments_url":"https://api.github.com/repos/flapdoodle-oss/de.flapdoodle.embed.mongo/issues/177/comments","events_url":"https://api.github.com/repos/flapdoodle-oss/de.flapdoodle.embed.mongo/issues/177/events","html_url":"https://github.com/flapdoodle-oss/de.flapdoodle.embed.mongo/issues/177","id":192388443,"number":177,"title":"Can’t control where to put the Mongo binaries","user":{"login":"mrmanc","id":547606,"avatar_url":"https://avatars.githubusercontent.com/u/547606?v=3","gravatar_id":"","url":"https://api.github.com/users/mrmanc","html_url":"https://github.com/mrmanc","followers_url":"https://api.github.com/users/mrmanc/followers","following_url":"https://api.github.com/users/mrmanc/following{/other_user}","gists_url":"https://api.github.com/users/mrmanc/gists{/gist_id}","starred_url":"https://api.github.com/users/mrmanc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrmanc/subscriptions","organizations_url":"https://api.github.com/users/mrmanc/orgs","repos_url":"https://api.github.com/users/mrmanc/repos","events_url":"https://api.github.com/users/mrmanc/events{/privacy}","received_events_url":"https://api.github.com/users/mrmanc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-29T20:18:50Z","updated_at":"2016-11-29T22:11:03Z","closed_at":null,"body":"When embedded Mongo starts, it downloads binaries to the directory specified in the [config](https://github.com/flapdoodle-oss/de.flapdoodle.embed.mongo#customize-artifact-storage). In a shared continuous integration environment it is preferable to be able to control this location using environment variables, to avoid every developer who uses this library having to remember to configure the artifact store path.\r\n\r\nWould you be open to me starting a PR to provide this functionality? I’m thinking it would be a small change (along with tests) to [DownloadConfigBuilder](https://github.com/flapdoodle-oss/de.flapdoodle.embed.mongo/blob/master/src/main/java/de/flapdoodle/embed/mongo/config/DownloadConfigBuilder.java#L47) to check an environment variable for a default location before using UserHome."},"comment":{"url":"https://api.github.com/repos/flapdoodle-oss/de.flapdoodle.embed.mongo/issues/comments/263716215","html_url":"https://github.com/flapdoodle-oss/de.flapdoodle.embed.mongo/issues/177#issuecomment-263716215","issue_url":"https://api.github.com/repos/flapdoodle-oss/de.flapdoodle.embed.mongo/issues/177","id":263716215,"user":{"login":"mrmanc","id":547606,"avatar_url":"https://avatars.githubusercontent.com/u/547606?v=3","gravatar_id":"","url":"https://api.github.com/users/mrmanc","html_url":"https://github.com/mrmanc","followers_url":"https://api.github.com/users/mrmanc/followers","following_url":"https://api.github.com/users/mrmanc/following{/other_user}","gists_url":"https://api.github.com/users/mrmanc/gists{/gist_id}","starred_url":"https://api.github.com/users/mrmanc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrmanc/subscriptions","organizations_url":"https://api.github.com/users/mrmanc/orgs","repos_url":"https://api.github.com/users/mrmanc/repos","events_url":"https://api.github.com/users/mrmanc/events{/privacy}","received_events_url":"https://api.github.com/users/mrmanc/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T22:11:03Z","updated_at":"2016-11-29T22:11:03Z","body":"I think the user’s home directory is a good default, but in our case (using GoCD) the user’s home directory is created by the CI agent package in a location without much storage (`/var`). I agree the artifacts should be shared, and by using an environment variable that should continue—it means we can stick a line in the user’s profile and avoid having that configuration in every code base.\r\n\r\nHow do you feel about `EMBEDDED_MONGO_ARTIFACTS` for the environment variable?"}}
{"actor":{"display_login":"mrmanc"}}