gdal-heroku

by jesseadamsnpgs

GitHub Readme.md

heroku-buildpack-gdal

I am a Heroku buildpack that installs GDAL and its dependencies (proj) for the heroku-16 stack ONLY.

When used by myself, I will install GDAL and proj libraries, headers, and binaries. Note: this does not currently include the Python bindings.

When used with heroku-buildpack-multi, I enable subsequent buildpacks / steps to link to these libraries.

Based on the original GDAL buildpack: https://github.com/mojodna/heroku-buildpack-gdal

Using

Standalone

When creating a new Heroku app:

heroku apps:create -b https://github.com/jesseadamsnpgs/gdal-heroku.git

git push heroku master

When modifying an existing Heroku app:

heroku config:set BUILDPACK_URL=https://github.com/jesseadamsnpgs/gdal-heroku.git

git push heroku master

Composed

When creating a new Heroku app:

heroku apps:create -b https://github.com/ddollar/heroku-buildpack-multi.git

cat << EOF > .buildpacks
https://github.com/jesseadamsnpgs/gdal-heroku.git
https://github.com/heroku/heroku-buildpack-nodejs.git
EOF

git push heroku master

When modifying an existing Heroku app:

heroku config:set BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git

cat << EOF > .buildpacks
https://github.com/jesseadamsnpgs/gdal-heroku.git
https://github.com/heroku/heroku-buildpack-nodejs.git
EOF

git push heroku master

Building

This uses Docker to build against Heroku stack-image-like images.

make

Powershell remove all stopped containers:

docker rm $(docker ps -a -q)

Powershell remove all images:

docker rmi $(docker images -a -q)

Artifacts will be dropped in dist/. See Dockerfiles for build options.