{"action":"created","issue":{"url":"https://api.github.com/repos/gogits/gogs/issues/1730","labels_url":"https://api.github.com/repos/gogits/gogs/issues/1730/labels{/name}","comments_url":"https://api.github.com/repos/gogits/gogs/issues/1730/comments","events_url":"https://api.github.com/repos/gogits/gogs/issues/1730/events","html_url":"https://github.com/gogits/gogs/pull/1730","id":109507320,"number":1730,"title":"New approach to Gogs Docker Container","user":{"login":"0rax","id":2822534,"avatar_url":"https://avatars.githubusercontent.com/u/2822534?v=3","gravatar_id":"","url":"https://api.github.com/users/0rax","html_url":"https://github.com/0rax","followers_url":"https://api.github.com/users/0rax/followers","following_url":"https://api.github.com/users/0rax/following{/other_user}","gists_url":"https://api.github.com/users/0rax/gists{/gist_id}","starred_url":"https://api.github.com/users/0rax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0rax/subscriptions","organizations_url":"https://api.github.com/users/0rax/orgs","repos_url":"https://api.github.com/users/0rax/repos","events_url":"https://api.github.com/users/0rax/events{/privacy}","received_events_url":"https://api.github.com/users/0rax/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gogits/gogs/labels/feedback%20needed","name":"feedback needed","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-02T14:53:26Z","updated_at":"2015-10-02T15:31:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/gogits/gogs/pulls/1730","html_url":"https://github.com/gogits/gogs/pull/1730","diff_url":"https://github.com/gogits/gogs/pull/1730.diff","patch_url":"https://github.com/gogits/gogs/pull/1730.patch"},"body":"This is a complete rewrite of the current Gogs docker container.\r\n\r\nSome stuff was bothering me like the size of the container or the fact that we could not use localhost to connect to linked database.\r\n\r\nI've rewrite it for this purpose while implementing other stuff that people wanted\r\n\r\nThis PR provide the following:\r\n- New container base on `alpine:3.2` making the base container lighter\r\n- S6 as system init and process supervisor (does not require a scripting runtime and pretty straightforward to configure)\r\n- A build script for the application, this help with the size of the container as only one layer is created when the application is compiled. This script install building dependencies, compile the software and then remove those dependencies. The resulting layer then only contains the app folder without the needed building dependencies.\r\n- This container implement a `VOLUME` directive for the `/data` folder as requested in #1708 \r\n- OpenSSH is configured to handle `rsa`,`dsa`,`ecdsa` and `ed25519` key fixing #1717\r\n- Fixes  #1499\r\n\r\nThe resulting size of this docker container is 77mo."},"comment":{"url":"https://api.github.com/repos/gogits/gogs/issues/comments/145063878","html_url":"https://github.com/gogits/gogs/pull/1730#issuecomment-145063878","issue_url":"https://api.github.com/repos/gogits/gogs/issues/1730","id":145063878,"user":{"login":"Unknwon","id":2946214,"avatar_url":"https://avatars.githubusercontent.com/u/2946214?v=3","gravatar_id":"","url":"https://api.github.com/users/Unknwon","html_url":"https://github.com/Unknwon","followers_url":"https://api.github.com/users/Unknwon/followers","following_url":"https://api.github.com/users/Unknwon/following{/other_user}","gists_url":"https://api.github.com/users/Unknwon/gists{/gist_id}","starred_url":"https://api.github.com/users/Unknwon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Unknwon/subscriptions","organizations_url":"https://api.github.com/users/Unknwon/orgs","repos_url":"https://api.github.com/users/Unknwon/repos","events_url":"https://api.github.com/users/Unknwon/events{/privacy}","received_events_url":"https://api.github.com/users/Unknwon/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T15:31:07Z","updated_at":"2015-10-02T15:31:07Z","body":"Thanks! Merging... "}}