Docker images: Are integrations still building? #329
Replies: 4 comments 5 replies
-
I have been playing around with this. It seems that dockerhub team plans is now a paid service, so that's out of the question here. I'm also reluctant to create a "go-shiori" user and have control. The easiest way is to host the images here on github's container registry. I have pushed the current I believe the best PR to tackle this is #278 by @n8225. Is very complete and have a lot of thought into it (and will help closing other related issues and PRs) but it will require some changes if we decide to use github container registry. From that I'm also worried it we need so many CI steps, ideally we should test with the current version in the go.mod and the +1. The builds could also be done using GoReleaser. I'm going to comment on that PR if that's something @n8225 is willing to update (or remove) and we could take it from there. |
Beta Was this translation helpful? Give feedback.
-
I was able to get the docker image to binary size+6or so MB. I could ressurect this. We could even do a 'from scratch' image and get it down to ONLY binary and some minimum things to function. I suspect we could get it to binary size (with UPX its compresses nicely) 30 or 40MB. |
Beta Was this translation helpful? Give feedback.
-
Crazy idea: We simply make a container 'tarball' that people can reconstitute. Then we can use 'best' compression with zstandard or somesuch. Might be a bit of overkill, but would be interesting. I think that with minimal upx of the binary with --best' would yield a reasonably non-smallish container that would resist compression anyways.....Might be fun to see what our sizes look like. |
Beta Was this translation helpful? Give feedback.
-
Here are my thoughts on CI/CD implementation. Please provide suggestions/input on this.
Using goreleaser will be more involved due to cgo. |
Beta Was this translation helpful? Give feedback.
-
My own thought is either host the docker binary images here, or simply let users build them on their own. Its not too hard to do a 'docker build -t shiori:latest' from one's workstation.
The problem with hosting the images is 'keeping them up to date' since old ones tend to go stale fast. If we just edit the docker file appropriately, people can build their own versions, saving on transfer/whatnot cost.
Automated pipelines, however, might be an answer to this, as well as possibly a nice docker-compose file. I could work on this with someone if they were interested.
Thomas
Beta Was this translation helpful? Give feedback.
All reactions