- Postgis 2.5.2 for postgresql 13.1.*
- Proj 4.9.2
- Geos 3.7.2
- without raster support!
- Build the docker image using Dockerfile inside
support
dir - The image will contain two
tar.gz
files:postgis
andpostgis-dependencies
postgis
: contains precomplied postgis lib, ready to be installed inside/app/.indyno/vendor/postgresql/
dirpostgis-dependencies
: contains precomplied and installed libs:proj
andgeos
.- Get files from docker container and move it to S3 bucket (
gloo-api-assets
) - During compliation stage this buildpack will fetch those 2 files from S3 bucket and install it inside the dyno.
Just add it to app.json
definition, like:
"environments": {
"test": {
"buildpacks": [
{ "url": "https://github.com/tangogroup/heroku-buildpack-ci-postgis" },
{ "url": "heroku/nodejs"},
],
"env": { "POSTGRESQL_VERSION": "13.1" },
"addons": ["heroku-postgresql:in-dyno"]
}
}
cd support
docker build . -t heroku-postgis
docker run -it heroku-postgis bash
Save container ID, open another terminal window and run:
docker cp {id-of-container}:/postgis-dependencies.tar.gz .
docker cp {id-of-container}:/postgis.tar.gz .
Now you have files inside your machine, go to S3 UI and put them inside gloo-api-assets
bucket.
Don't forget to allow read-all access.