-
Notifications
You must be signed in to change notification settings - Fork 67
Updated Dockerfile, bumping Postgres, Go and Debian versions #209
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
Conversation
Signed-off-by: Ryan <[email protected]>
|
hey @mccaffers, what a nice PR, thanks for your work! Any reasoning why you update to postgres/postgis version 13 and not the newest version 15? I tried it for some small exports and it seems to work as well (not sure about the performance impacts). But maybe you did some tests as well? Edit: just saw |
|
Thanks @philippks
I think I had issues trying to get postgres version 15 working with osmnames. I'll get some results and share back I'll share test results and update the requirements.lock with versions that work against the updated versions. I'll follow up asap. |
|
I'd suggest merging it for now, since the current Dockerfile is broken. That way, it would at least work for now. An update to v15 could still be done in a later PR. |
Credits go to mccaffers. I just used the newest versions: OSMNames#209
|
I updated to the newest version in a separate PR, see #211 feel free to provide feedback. I'll merge it in a few days (I can't add externals as reviewers). |
Credits go to mccaffers. I just used the newest versions: OSMNames#209
Credits go to mccaffers. I just used the newest versions: #209
|
I close this PR in favor of #211 thanks for your work @mccaffers |
Issue
The docker build is currently broken as Postgresql.org have removed support for Debian (9/Stretch).
Options
You could keep using the archived versions, by modifying line 3 of the
./Dockerfileto
Or we could bump the versions up. I've experimented with bumping the versions up for Postgres, Go and Debian. This would allow us to take advantage of the various performance improvements of newer versions. Feel free to reject this though if you prefer the change above.
Proposed Changes
Upgraded Go to version 1.19 (latest) and Debian to Bullseye (11)
Change postgresql-client to reference version 13 (Bullseye provides postgresql-client-13, stable)
https://packages.debian.org/bullseye/postgresql-client
Switch the go command to just 'go install' with '@latest'
Moved DEBIAN_FRONTEND=noninteractive to the top to keep the file cleaner. ARG's are only available to build so not leaked into the image.
gccis required to buildpsycopg2-binaryRemoved the lock on the requirements as those versions are too old
Switched the Postgres GIS from mdillon/postgis (4 years old, https://hub.docker.com/r/mdillon/postgis/) to postgis/postgis (https://github.com/postgis/docker-postgis)
File image is 1.33GB
Testing
Built locally on MacOS (Intel) and on AWS (ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-gp2)
Test building

Tested Matla (5mb)


Tested Portugal (200mb)
