Skip to content
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

Postgis support #104

Open
jperelli opened this issue Sep 4, 2024 · 1 comment
Open

Postgis support #104

jperelli opened this issue Sep 4, 2024 · 1 comment

Comments

@jperelli
Copy link

jperelli commented Sep 4, 2024

There's an error when trying to upgrade and postgis is installed, I've found the following workaround

docker run -ti --rm -v ./.volumes/db:/var/lib/postgresql --entrypoint="" tianon/postgres-upgrade:14-to-16 bash
root@7acd0925d768:/var/lib/postgresql# apt update && apt install postgresql-14-postgis-3 postgresql-16-postgis-3
[...]
root@7acd0925d768:/var/lib/postgresql# docker-upgrade pg_upgrade

But I was thinking if there's something that can be added as an option when running the image, maybe the entrypoint could have extra packages names as an argument and install them before running, for example

docker run -ti --rm -v ./.volumes/db:/var/lib/postgresql tianon/postgres-upgrade:14-to-16 --packages=postgresql-14-postgis-3,postgresql-16-postgis-3

and that just runs apt update && apt install postgresql-14-postgis-3 postgresql-16-postgis-3 before the upgrade

@tianon
Copy link
Owner

tianon commented Sep 19, 2024

See #51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants