{"action":"created","issue":{"url":"https://api.github.com/repos/docker-library/mongo/issues/38","labels_url":"https://api.github.com/repos/docker-library/mongo/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/docker-library/mongo/issues/38/comments","events_url":"https://api.github.com/repos/docker-library/mongo/issues/38/events","html_url":"https://github.com/docker-library/mongo/issues/38","id":71120408,"number":38,"title":"Seeding data into a database","user":{"login":"willis7","id":3193414,"avatar_url":"https://avatars.githubusercontent.com/u/3193414?v=3","gravatar_id":"","url":"https://api.github.com/users/willis7","html_url":"https://github.com/willis7","followers_url":"https://api.github.com/users/willis7/followers","following_url":"https://api.github.com/users/willis7/following{/other_user}","gists_url":"https://api.github.com/users/willis7/gists{/gist_id}","starred_url":"https://api.github.com/users/willis7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willis7/subscriptions","organizations_url":"https://api.github.com/users/willis7/orgs","repos_url":"https://api.github.com/users/willis7/repos","events_url":"https://api.github.com/users/willis7/events{/privacy}","received_events_url":"https://api.github.com/users/willis7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-04-26T21:11:58Z","updated_at":"2015-04-27T21:36:16Z","closed_at":null,"body":"What is the best practice regarding seeding data? \r\n\r\nI have tried to run `mongo myDB myData.js` from a linked container, but get the error `bash: mongo: command not found`. I have also tried to run this same command on my extended mongo image, but get an error mongo isn't running - as expected. \r\n\r\nThe only thing I can think of is to seed via the application, but this isn't practical. With this approach each time I deploy a new version of the application I would seed the data again - thats not an option for production.\r\n\r\nAny help gratefully received."},"comment":{"url":"https://api.github.com/repos/docker-library/mongo/issues/comments/96828548","html_url":"https://github.com/docker-library/mongo/issues/38#issuecomment-96828548","issue_url":"https://api.github.com/repos/docker-library/mongo/issues/38","id":96828548,"user":{"login":"yosifkit","id":896423,"avatar_url":"https://avatars.githubusercontent.com/u/896423?v=3","gravatar_id":"","url":"https://api.github.com/users/yosifkit","html_url":"https://github.com/yosifkit","followers_url":"https://api.github.com/users/yosifkit/followers","following_url":"https://api.github.com/users/yosifkit/following{/other_user}","gists_url":"https://api.github.com/users/yosifkit/gists{/gist_id}","starred_url":"https://api.github.com/users/yosifkit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosifkit/subscriptions","organizations_url":"https://api.github.com/users/yosifkit/orgs","repos_url":"https://api.github.com/users/yosifkit/repos","events_url":"https://api.github.com/users/yosifkit/events{/privacy}","received_events_url":"https://api.github.com/users/yosifkit/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T21:36:16Z","updated_at":"2015-04-27T21:36:16Z","body":"Just mount in the javascript with  `-v /local/path/to/quote.js:/quote.js:ro`.  Then, no need for a new image :smile:."}}