In order to use this buildpack in addition to a standard buildpack such as node, we need to use the multi buildpack
heroku apps:create build-gm -buildpack https://github.com/ddollar/heroku-buildpack-multi.git
heroku config:set BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git
A buildpack configuration file .buildpacks needs to be added to the project
.buildpacks
https://github.com/long/buildpack-custom-graphicsmagick.git
https://github.com/heroku/heroku-buildpack-nodejs.git
Libraries and executables for GraphicsMagick and supporting libraries are built using the scripts located under the build/scripts directory.
Each build script is self-contained and are run separately to build the necessary library components.
The build results are installed in a clean directory and packaged up into an archive that is stored in S3 and will be used for the custom buildpack installation.
Build source is located in S3
s3://buildpacks.rayburst.com/custom-graphicsmagick/src
Build results are located in S3
s3://buildpacks.rayburst.com/custom-graphicsmagick/vendor
- zlib
- libpng
requires zlib - tiff
requires zlib - yasm
- libjpeg-turbo
requires yasm, zlib - lcms2
requires libjpeg-turbo, tiff, zlib - gm
requries libpng, tiff, libjpeg-turbo, lcms2, zlib
zlib 1.2.8
libpng 1.5.17
tiff 4.0.3
yasm 1.2.0
libjpeg-turbo 1.3.1
lcms2 2.4
GraphicsMagick 1.3.18
This project should be installed on Heroku using the null buildpack in order to pre-build the libraries and executables
heroku apps:create build-gm -buildpack http://github.com/ryandotsmith/null-buildpack.git
heroku run bash
build/build_all /tmp/vendor_build /tmp/vendor \
https://s3.amazonaws.com/buildpacks.rayburst.com/custom-graphicsmagick/src \
buildpacks.rayburst.com custom-graphicsmagick/vendor \
[AWS KEY] [AWS SECRET]