schollz / hostyoself

Host yo' self from your browser, your phone, your toaster.
https://hostyoself.com
MIT License
1.84k stars 73 forks source link

Dockerization #10

Closed dmuth closed 5 years ago

dmuth commented 5 years ago

I'd like to propose a Dockerized version of hostyoself so that the CLI version can be run via a docker run command.

I'll be happy to contribute a Dockerfile and push the Docker image to Docker Hub. Just say the word! :-)

schollz commented 5 years ago

It was too easy, so I pushed it! Thanks though!

dmuth commented 5 years ago

FYI, the image doesn't seem to be uploaded to Docker Hub...?

$ docker pull schollz/hostyoself                                                                                                                                                     
Using default tag: latest
Error response from daemon: manifest for schollz/hostyoself:latest not found
schollz commented 5 years ago

Yeah, I forgot to use go generate, try now!

dmuth commented 5 years ago

Looks good! I actually was planning on running hostyoself in relay mode on one of my severs, and since your build runs host by default, I ended up expanding on it in my fork. I also fixed an issue with COPY . . which would cause the entire app to be recompiled if anything at all changed, such as the Dockerfile itself, or a Vim .swp file.

I'm going to send a PR shortly with what I did, but think of it less as a PR and more as a "pull this if you like". If you would prefer to pick and choose from what I did in my commit and integrate it by hand, feel free to do so, and treat it was a contribution under the existing license for this app. :-)

-- Doug

schollz commented 5 years ago

Thanks Doug, that's awesome. I appreciate it.