planetfederal / osgeolib-buildpack

Cloud Foundry Buildpack to include OSGEO Libraries.
MIT License
1 stars 2 forks source link

osgeolib-buildpack

osgeolib-buildpack is a buildpack that contains OSGeo specific libraries to be added to the droplet. It is a minimal buildpack and requires the use of the multi-buildpack.

When you push your app cf push the bin/compile script execution will check to see if /app/.heroku/vendor/bin/gdalserver exists. If it does it will not install the libraries.

CF App Integration

Add a multi-buildpack.yml file in your app root and ensure that the osgeolib buildpack is the first entry in the yaml file.

buildpacks:
  - https://github.com/boundlessgeo/osgeolib-buildpack
  - https://github.com/cloudfoundry/python-buildpack

Also you will need to ensure the manifest file for the application has the following entry.

buildpack: https://github.com/cloudfoundry-incubator/multi-buildpack.git

OSGeo Libraries included

The buildpack also adds the following env variables to .profile.d/osgeo.sh

Steps to build the osgeolib-*-.tar.gz

cd vendor
docker run -v $PWD:/app -it cloudfoundry/cflinuxfs2 /app/build_libs.sh

This should result in the osgeolib-\*-.tar.gz file being added to the vendor directory.

OGR (Vector) Drivers

Supported Formats:

GDAL (Raster) Drivers

Supported Formats: