-
Notifications
You must be signed in to change notification settings - Fork 2
Better version management of docker images and support for updates #11
Comments
+1 on the "note and thoughts" The tag on docker hub can be a version like "x.y.z", with x and y being major and minor version ofwrapper/proxy/... and z being an incrementing serial number for each patch rebuild we do of the image. |
I'm not entirely sure I see why we need to track build version. Of course my assumption here is that things will rarely break and if they do, tests should catch them before the updated image is put on Docker Hub. How would a user of the image experience not seeing changes in the tag? I would guess Docker checks the layer checksums rather than just compare the tag on the local image with the one on hub, so changes would be pulled, same as the "latest" tag works. That would leave a user with not having to worry about switching versions/tags to get the newest patches. |
Update - @kidmose and I have talked around this and come to the following conclusion: We want to tag with version and version.travis_build, as well as "latest" on the newest version and build. Thus the version tag will be moving with new build making it easy to get a patched version of the image as well as having the possibility to specifically select a version and build if needed. |
Extending with a made up example, if for nothing else, then for my self to be able to remember; This provides:
|
Yes, spot on, with these further details:
|
As is now, we build an image, do some tests and push it to a specific version tag on Docker Hub. A new version of dnscrypt-wrapper in an image would get a new tag and be made available under that tag.
This simplified versioning assumes we're okay with having more or less whatever version of Debian and libsodium in the image as whatever is available at build time is what is used.
You are now able to select the version of dnscrypt-wrapper you want to run. Great.
However, e.g. version 0.2.2 will sit there and not receive any patches or updates, when we start tagging images resulting from builds with never versions.
We should take care of this by doing the following:
Some notes and thoughts:
The text was updated successfully, but these errors were encountered: