This project is a Scalingo buildpack to use latest version of GraphicsMagick (1.3.36) alongside your app.
It doesn't do anything else, you have to use it alongside another buildpack thanks to the mutli-buildpack.
To use this buildpack, you should prepare .buildpacks
file that contains this buildpack url and your real buildpack url.
$ cat .buildpacks
https://github.com/Scalingo/graphicsmagick-buildpack.git
https://github.com/Scalingo/ruby-buildpack.git
The first buildpack will install GraphicsMagick utilities in /app/bin
, the
second will handle the deployment of your ruby application. For any other
technology, go to
http://doc.scalingo.com/buildpacks/
$ scalingo env-set BUILDPACK_URL=https://github.com/Scalingo/multi-buildpack.git
$ git push scalingo master
...
You can verify the installation of GraphicsMagick with the following command.
$ scalingo run "gm version"
You could upload the desired version of GraphicMagick from GraphicMagick sources
on a S3 for example. Then using the environment variable GRAPHICS_MAGICK_ARCHIVE_URL
to specify
the archive location, following the example:
scalingo env-set GRAPHICS_MAGICK_ARCHIVE_URL=https://hg.osdn.net/view/graphicsmagick/GM/archive/GraphicsMagick-1_3_36.tar.gz
Note that Scalingo provide only support of the default version defined in
configs.sh
file. We do not guarantee the proper functioning of the build in case of usage of other versions.
To change this buildpack, fork it on Github. Push up changes to your fork,
then create a test app with BUILDPACK_URL=<your-github-url>
and push to it.
To change the vendored binaries for ImageMagick, use the helper scripts
in the support/
subdirectory.
You'll need an S3 account and a bucket to store your binaries in.
The bucket name and imagemagick version are stored in the configs.sh file,
so update it there (if you plan to contribute back to this repo, do this
in a separate commit).
To rebuild the GraphicsMagick package for stack 'scalingo-20', you can:
$ docker run --rm -v $buildpack_path:/buildpack -it scalingo/scalingo-20:v1 bash
$ apt-get install s3cmd
$ cd /buildpack
$ export S3_ACCESS_KEY=xxx S3_SECRET_KEY=yyy STACK=scalingo-20
$ support/package_graphicsmagick
Commit and push the changes to your buildpack to your Github fork, then push your sample app to Scalingo to test. You should see:
-----> Downloading graphicsmagick YOUR_IMAGE_MAGICK_VERSION_HERE
- Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
- Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
- Fork the project
- Start a feature/bugfix branch
- Commit and push until you are happy with your contribution
This is an OPEN Open Source Project -- this means that:
Individuals making significant and valuable contributions are given commit-access to the project to contribute as they see fit. This project is more like an open wiki than a standard guarded open source project.
This project is currently being maintained by Leo Unbekandt (@Soulou).
Copyright (c) 2016 Scalingo SAS, https://scalingo.com
Copyright (c) 2013 Matteo Collina, http://matteocollina.com
Copyright (c) 2012 Heroku, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.