-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider adding postgis/postgis:<postgres_major_version>-<postgis_major_version> tags #407
Comments
Not that I'm familiar with github workflows at all, but given that image building is completely automated that way, presumably just pushing some additional tags as those aliases would be easy enough to add here: https://github.com/postgis/docker-postgis/blob/master/.github/workflows/main.yml |
Begging your pardon, the actual building, tagging and pushing is happening in the makefile: https://github.com/postgis/docker-postgis/blob/master/Makefile |
Thank you for your suggestion Your idea has a rational basis,
simple workaround example $ docker pull postgis/postgis:15-3.4-alpine && \
> created=$(docker inspect --format='{{.Created}}' postgis/postgis:15-3.4-alpine) && \
> days=$(( ( $(date +%s) - $(date --date="$created" +%s) ) / 86400 )) && \
> echo "postgis/postgis:15-3.4-alpine - generated ${days} days ago" && \
> [ ${days} -le 40 ] || { echo "it is too old" >&2; false; }
15-3.4-alpine: Pulling from postgis/postgis
Digest: sha256:d96be3a9c16d44e22d34d5c7b6e85be8875addf672672c6cd38171ea6055a94a
Status: Image is up to date for postgis/postgis:15-3.4-alpine
docker.io/postgis/postgis:15-3.4-alpine
postgis/postgis:15-3.4-alpine - generated 123 days ago
it is too old
|
Thank you for your detailed response!
I had in fact forgotten about the fact that postgis upgrades are not automatic in that way! That alone should be enough reason to close this as wontfix to be honest. |
Hi!
It would be useful if there existed a tag that one could specify that always points at the latest possible release for a particular postgres/postgis major version combo. That way maintenance overhead in downstream docker compose files for example could be somewhat minimised.
Is there interest in this? I obviously have an interest and I'm quite happy to look into it and make some contributions to the extent that I am able. I don't know if this creates a maintenance headache for you going forwards though!
Example
postgis/postgis:15-3-alpine
as an alias (currently) ofpostgis/postgis:15-3.5-alpine
. When postgis 3.6 is released,15-3-alpine
would point at15-3.6-alpine
insteadMotivation
We had been pinning our postgis containers to
postgis/postgis:15-3.3-alpine
. Unnoticed to us, it's been over a year since that tag has seen any updates. We should have been keeping up with the postgis minor versions instead and should be on 15-3.5-alpine by now. This is entirely our own fault of course, but did take me by surprise.In the case of other docker images, it is often possible to just point at a
stable
tag, or at least a tag that only specifies a major version, which is an alias for the most recently release with that major version.registry.redict.io/redict:7-alpine
, ornginx:stable
for instance. I know that astable
tag for postgres doesn't really work, since upgrading postgres requires manual intervention.The text was updated successfully, but these errors were encountered: