timescaledb-docker-ha icon indicating copy to clipboard operation
timescaledb-docker-ha copied to clipboard

Docker image versioning for releases

Open suikast42 opened this issue 10 months ago • 6 comments

It seems so that all release versions like 16.2-ts2.14.2-all is updaeting with every built

https://hub.docker.com/r/timescale/timescaledb-ha/tags?page=&page_size=&ordering=&name=pg16.2-ts2.14.2

Is that a bug or did I miss something?

suikast42 avatar Apr 23 '24 12:04 suikast42

This repo builds on a schedule in order to incorporate upstream bug and security fixes, so this is expected.

graveland avatar Apr 23 '24 13:04 graveland

And what is the correct way to use releases of this repo ? Should I always have to build it myself from tags for havin stable releases ?

suikast42 avatar Apr 24 '24 05:04 suikast42

You pick the level of comfort for changes that you're at:

  • pg16: pg minor versions and tsdb versions might update, along with system/pgdg things
  • pg16.2-ts2.14: the only thing that could change is the patch level of tsdb, and system/pgdg things
  • pg16.2-ts2.14.2: the only things that can change are system dependencies (and pgdg-packaged extensions can change too)

If you don't want anything to change, then you'd pin to a specific sha: timescale/timescaledb-ha@sha256:082aebfbb1cb03016f489e0dea845fd7db06b7ec3271b9b0c5ee44ef47e04c75

graveland avatar Apr 24 '24 17:04 graveland

Interesting approach. But that's not the state of art to work with docker images. Why not use latest tag for the latest build ?

suikast42 avatar Apr 26 '24 07:04 suikast42

Generally speaking, using latest is frowned upon when actually deploying things as you're supposed to pick something more explicit so you don't get surprised by changes. Also, we build multiple different types of images (oss, and all for example), so just latest would be too ambiguous. We could add -latest to all of our existing tags, but that would just explode the number of tags and I don't think it would add a lot to disambiguate things?

graveland avatar Apr 26 '24 15:04 graveland

... tags and I don't think it would add a lot to disambiguate things?

Not realy.

Look at https://hub.docker.com/r/timescale/timescaledb

suikast42 avatar Apr 26 '24 21:04 suikast42