{"action":"closed","issue":{"url":"https://api.github.com/repos/docker-solr/docker-solr/issues/22","repository_url":"https://api.github.com/repos/docker-solr/docker-solr","labels_url":"https://api.github.com/repos/docker-solr/docker-solr/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/docker-solr/docker-solr/issues/22/comments","events_url":"https://api.github.com/repos/docker-solr/docker-solr/issues/22/events","html_url":"https://github.com/docker-solr/docker-solr/issues/22","id":147008341,"number":22,"title":"Container start-time expansion mechanism","user":{"login":"makuk66","id":237145,"avatar_url":"https://avatars.githubusercontent.com/u/237145?v=3","gravatar_id":"","url":"https://api.github.com/users/makuk66","html_url":"https://github.com/makuk66","followers_url":"https://api.github.com/users/makuk66/followers","following_url":"https://api.github.com/users/makuk66/following{/other_user}","gists_url":"https://api.github.com/users/makuk66/gists{/gist_id}","starred_url":"https://api.github.com/users/makuk66/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makuk66/subscriptions","organizations_url":"https://api.github.com/users/makuk66/orgs","repos_url":"https://api.github.com/users/makuk66/repos","events_url":"https://api.github.com/users/makuk66/events{/privacy}","received_events_url":"https://api.github.com/users/makuk66/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker-solr/docker-solr/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"makuk66","id":237145,"avatar_url":"https://avatars.githubusercontent.com/u/237145?v=3","gravatar_id":"","url":"https://api.github.com/users/makuk66","html_url":"https://github.com/makuk66","followers_url":"https://api.github.com/users/makuk66/followers","following_url":"https://api.github.com/users/makuk66/following{/other_user}","gists_url":"https://api.github.com/users/makuk66/gists{/gist_id}","starred_url":"https://api.github.com/users/makuk66/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makuk66/subscriptions","organizations_url":"https://api.github.com/users/makuk66/orgs","repos_url":"https://api.github.com/users/makuk66/repos","events_url":"https://api.github.com/users/makuk66/events{/privacy}","received_events_url":"https://api.github.com/users/makuk66/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2016-04-08T18:54:28Z","updated_at":"2016-04-15T10:07:45Z","closed_at":"2016-04-15T10:07:45Z","body":"From a discussion in https://github.com/docker-solr/docker-solr/issues/14 arises this feature request for an extension machine that makes it easy to arrange for code to be run before Solr starts or after it has started, for example to create a core. You can of course already do that by making a custom image, but that's a pain. You can do various file-mounting and run argument tricks, but that's confusing and inconvenient. https://hub.docker.com/_/postgres/ has a good example to follow (see \"How to extend this image\"). And if we can do common tasks like creating a core or loading a core with some demo data, by just specifying a command-line argument, that would be nice too.\r\n\r\nRelated: [SOLR-7316 \"API to create a core is broken\"](https://issues.apache.org/jira/browse/SOLR-7316)"}}