Closed rgaudin closed 3 years ago
@rgaudin I have created the proper Docker hub hooks https://hub.docker.com/repository/docker/kiwix/kiwix-serve/builds
@rgaudin The problem with URL is well known. The only solution I'm aware off, is to compile everything locally. That implies to to track all the dependences (like in kiwix-build)... which is not really maintainable as well. So, i have basically no solution so far to that problem. @mgautierfr Do you have idea how we might rely properly on kiwix-build?
I know it's not easy to fix, that's why I opened the issue ;)
I don't think what you did is of much help if you don't link to a versioned link. It might actually be worse as there are good chance that when you push the tag, the build is triggered before the new release is uploaded resulting in a tagged image that have the wrong binary…
The solution for using an external binary is to have the version in the Dockerfile I'm afraid. That means having a dedicated tag for docker docker-v3.10
that triggers the build but then you have to make sure this tag doesn't triggers other things accidentally.
So maybe the solution is to have a separate repo for the Dockerfile. It's not elegant (we have to push on this repo after the release – that might be automated) but it would work. A link to that repo from the readme is seems OK to me.
Weighting in on this. As of right-now, there's a 3.1.0-2
version in the release folder but the docker had not been updated since 3.10
release…
I see that this repo (kiwix-tools) has no tag for this sub-release (I suspect it's packaging version only but the same code base?) so the hub did not run.
So just to be clear:
kiwix:kiwix-serve:latest
provides 3.1.0
instead of 3.1.0-2
kiwix:kiwix-serve:3.1.0
provides 3.1.0
instead of 3.1.0-2
I am manually triggering a build on the hub now to fix it but the problem will continue on next release. This one is related to -2
version but next release will be similarly impacted by the delay between tarball on release and docker hub build.
@mgautierfr At this point we need your oponion here to avoids duplicates. Maybe all of this should be handled in (or in relation) with kiwix-build?
With @rgaudin, we have decided to fix the problem by implementing similar approach like https://github.com/openzim/zim-tools/issues/202
At the moment, there is no tag (but
latest
) available on the kiwix/kiwix-serve docker image. Given it's a released software with changing features, it's a problem.Additionnaly, the Dockerfile uses a version-less download URL
https://github.com/kiwix/kiwix-tools/blob/6ba6046850eb92f6d23408f38a5de93c970720a1/docker/server/Dockerfile#L7