-
Notifications
You must be signed in to change notification settings - Fork 466
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
How to create stable images (Version '<version>' for 'postgresql-<version>-postgis-<version>' was not found) #396
Comments
Fix for the actual issue is tracking in https://github.com/postgis/docker-postgis/pull/395/files |
CC: @df7cb as he manages apt.postgresql.org. As the package repos don't keep the old versions around, you can't pin specific versions in your CI. You'd need to run you own package repo which does keep old versions around if you need that. Or build the desired version from source. On Debian regular systems you'd install the postgresql-postgis metapackage which depends on the postgresql specific version that provides the extension (e.g. postgresql-17-postgis-3). When doing a distribution upgrade it pulls in the new version for the postgresql included in that release. |
Postgis docker images are rebuilt weekly (
If everything is successful, the Docker postgis image is published. We ( docker-postgres repo ) generally follow the style of the upstream Docker Postgres repository, Regarding changes to the In the next version ( test : https://github.com/ImreSamu/docker-postgis) , a "recent" version is already being prepared from the source code, along with many other new features, including automatic upstream version detection. If you have any other suggestions, we are open to them. |
Thanks @sebastic and @ImreSamu for clarifications, in our use-case we are tied to a platform provider (eg. Google Cloud SQL, Postgres for Azure) and we want to run our CI on a version that resembles the platform as closely as possible. I guess best way then would be building it from the source or self-hosting the package... unless you have any other pointers :) |
I have a similar issue with GCP, so I'm trying to design the new system in a way that allows for extensions with specialized versions. For example,
|
Simply don't pin the version and be happy. |
I'd happily not pin any versions anywhere, but as said we are often constricted by our platform providers and there's always a risk of doing something incompatible when doing so. :) |
well it's obviously more incompatible to do the pinning 🙊 |
I agree with @petetnt. Our platform provider currently uses version 3.3
and obviously we'd like to use the same version in development to make sure we're not doing anything that isn't supported in our online environment. However, that version is no longer available, instead the only available version right now is I was hoping there would be some way to keep those images around so we can keep using the same version as our platform provider. |
There is https://apt-archive.postgresql.org/. |
Re-opening this issue because it's similar to the following issue #346 but I'd like to find a more long term solution than just updating the version in the variable.
I am not really familiar how the
apt
release process works at all, but basically currently every(ish?) time a new version is released, the version we are using is removed (eg. see https://ftp.debian.org/debian/pool/main/p/postgis/), which means that the version variablePOSTGIS_VERSION
needs to be updated.For example, the version pointed at now,
3.4.3+dfsg-2.pgdg110+1
results in the following error:I am looking for a way to make this somewhat stable, eg. I am okay with just
3.4.3
as long as it's available until I update it.As far as I understand, @sebastic manages the releases on the Debian side if I understand https://tracker.debian.org/pkg/postgis correctly, so maybe they could throw a pointer or two what should be the proposed way forward.
The text was updated successfully, but these errors were encountered: