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.
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.
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.