hackoregon / transportation-systems

Hack Oregon Repository to develop code for the Transportation Theme of CIVIC.
MIT License
5 stars 2 forks source link

Develop a script to install PostGIS in Amazon Linux 2 #23

Closed znmeb closed 4 years ago

znmeb commented 6 years ago

See https://github.com/hackoregon/civic-devops/issues/19. DevOps is going with Amazon Linux 2 for a PostgreSQL server, which doesn't have PostGIS packages available. So if we're using GeoDjango against it, we'll need PostGIS. https://docs.djangoproject.com/en/2.0/ref/contrib/gis/install/#spatial-database

Given the unique nature of "Amazon Linux" - it's Yum / RPM based, but there's no guarantee that RHEL/CentOS RPMs will inter-operate correctly with it. So we need to build PostGIS and its dependencies from source.

My plan is to make this available as a Dockerfile / Docker compose file for local development, so we're testing on the same software we're deploying.

znmeb commented 6 years ago

I have this working in a private repo on Bitbucket - let me know if anyone wants to use it. I'll probably put it in the znmeb GitHub to avoid polluting the Hack Oregon GitHub space any further.