{"action":"created","issue":{"url":"https://api.github.com/repos/mail-in-a-box/mailinabox/issues/112","labels_url":"https://api.github.com/repos/mail-in-a-box/mailinabox/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/mail-in-a-box/mailinabox/issues/112/comments","events_url":"https://api.github.com/repos/mail-in-a-box/mailinabox/issues/112/events","html_url":"https://github.com/mail-in-a-box/mailinabox/issues/112","id":38126060,"number":112,"title":"Dockerized version of Mail-in-a-Box","user":{"login":"else","id":77769,"avatar_url":"https://avatars.githubusercontent.com/u/77769?v=3","gravatar_id":"","url":"https://api.github.com/users/else","html_url":"https://github.com/else","followers_url":"https://api.github.com/users/else/followers","following_url":"https://api.github.com/users/else/following{/other_user}","gists_url":"https://api.github.com/users/else/gists{/gist_id}","starred_url":"https://api.github.com/users/else/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/else/subscriptions","organizations_url":"https://api.github.com/users/else/orgs","repos_url":"https://api.github.com/users/else/repos","events_url":"https://api.github.com/users/else/events{/privacy}","received_events_url":"https://api.github.com/users/else/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mail-in-a-box/mailinabox/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/mail-in-a-box/mailinabox/labels/needs%20volunteer","name":"needs volunteer","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":47,"created_at":"2014-07-17T21:08:57Z","updated_at":"2015-02-22T16:34:15Z","closed_at":null,"body":"I was thinking about using Mail-in-a-Box and thought it may be a very good idea to provide a Docker image. Anyone has an idea of what the effort may be?"},"comment":{"url":"https://api.github.com/repos/mail-in-a-box/mailinabox/issues/comments/75443713","html_url":"https://github.com/mail-in-a-box/mailinabox/issues/112#issuecomment-75443713","issue_url":"https://api.github.com/repos/mail-in-a-box/mailinabox/issues/112","id":75443713,"user":{"login":"chrert","id":1387661,"avatar_url":"https://avatars.githubusercontent.com/u/1387661?v=3","gravatar_id":"","url":"https://api.github.com/users/chrert","html_url":"https://github.com/chrert","followers_url":"https://api.github.com/users/chrert/followers","following_url":"https://api.github.com/users/chrert/following{/other_user}","gists_url":"https://api.github.com/users/chrert/gists{/gist_id}","starred_url":"https://api.github.com/users/chrert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrert/subscriptions","organizations_url":"https://api.github.com/users/chrert/orgs","repos_url":"https://api.github.com/users/chrert/repos","events_url":"https://api.github.com/users/chrert/events{/privacy}","received_events_url":"https://api.github.com/users/chrert/received_events","type":"User","site_admin":false},"created_at":"2015-02-22T16:34:15Z","updated_at":"2015-02-22T16:34:15Z","body":"@JoshData I was able to get a running version with just a few changes! However, it's not properly implemented yet, since it highly depends on upstart and init.d services. For some reason, everything works on first startup (the services get started) but we should also be able to stop and start the container. \r\n\r\nMy current approach is as follows:\r\n1. Build the image\r\n2. Run the data-container\r\n3. Run the services-container detached *without* starting the init script\r\n4. Exec the init.sh script using `docker exec -it mailinabox-services init.sh` to configure the system\r\n\r\nAs already mentioned that's working fine now, however, after restart the non-runit services will not be started.\r\n\r\nThe solution would be to let runit handle every service. That's how the baseimage is meant to be used, so it will be slightly bigger PR.\r\n\r\nWhat do you think about my thoughts?\r\n\r\n"}}