as gitea grows, we have to rewrite docker stuff in the docker dir.
this issue will stays open until PR is merged and will serve a repo for comments.
feel free to add what you think should be done regarding docker build
keep s6 as an init replacement.
rewrite env variables
dockerfile cleanup
I would suggest to have the smaller image as possible and by doing so, the compilation should be done outside and the binary pushed to the docker (maybe from scratch instead alpine).
I could provide later a link to a docker images that can be used to build Go program and make docker images without compiler program.
Edit 11/10/16:
Here is the link to build dockerfile for Go program with image "SCRATCH"
@DblK feel free to update your comment with the appropriate link :)
We will use drone to build the binary outside of the docker image, the drone pipeline is in preparation ;)
@tboerger nice !
then @DblK send the link to me :) i'd be happy to learn moaaarrrr go :)
why do we need that s6 stuff instead of setting things up in the dockerfile?
@willemvd we need s6 as process manager because we will run more than a single service within the container, at least we need Gitea and openSSH.
I would strongly recommend against using scratch
as that renders any form of shell scripting invalid.
The way you say it makes it sound like avoiding shell scripts is a bad thing
Yes, it breaks many things. Including git-hooks and https://github.com/go-gitea/git.
Nobody wants to use scratch, alpine is a perfect base
@tboerger, I just wanted to let anyone that likes @DblK's idea know that it's not going to be good if we use scratch as base.
Using scratch as base not is (in this case) a good idea cause you need OpenSSH and shell scripts.
We already refactored docker
Most helpful comment
Nobody wants to use scratch, alpine is a perfect base