Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve libvips support for Heroku? #32

Open
mokolabs opened this issue Apr 5, 2018 · 7 comments

Comments

Projects
None yet
3 participants
@mokolabs
Copy link
Collaborator

commented Apr 5, 2018

I'm ultimately planning to deploy my new image_processing app to Heroku.

Since libvips isn't included in the default package list on Heroku stacks, I will need to install a custom buildpack before I deploy my app.

There are quite a few libvips buildpacks on Heroku already:
https://elements.heroku.com/search/buildpacks?q=libvips

But I'm not sure which is best. Plus they all seem outdated. The most popular uses version 7.42.3, but that's over five years old. The newest buildpack uses 8.0.0, but that's almost 3 years old.

I'd like to see...

  • An updated buildpack with a current version of libvips
  • A new "How To" guide on the wiki with complete steps for installing the buildpack on Heroku

Why do this? We should make it super easy to use libvips with image_processing on Heroku. Right now, our story is "libvips support is amazing, but it's kind of a pain to deploy to Heroku". If we create a new buildpack, the story will be "libvips is amazing and it's easy to deploy to Heroku using our custom buildpack".

The buildpack, of course, should be its own Github project. I'm happy to host it, but I'm certainly not an expert on Ubuntu package management and library compilation, so I'd love some help from others who may know more about that stuff than me. (I can also help with testing and documentation).

Thoughts?

@mokolabs

This comment has been minimized.

Copy link
Collaborator Author

commented Apr 5, 2018

This seems like the most recently updated buildpack:
https://github.com/kespry/heroku-buildpack-vips

The README says it's using libvips version 8.0.0, but a month ago, there was a commit that bumped it to version 8.6.2 (but they forgot to update the README).

The latest official libvips release is 8.6.3, so that's basically current.

@janko

This comment has been minimized.

Copy link
Owner

commented Apr 5, 2018

@mokolabs I agree, we should definitely do a writeup on that. Though I'm wondering whether a better place for Heroku instructions would be the ruby-vips wiki (where we would link to from here).

@mokolabs

This comment has been minimized.

Copy link
Collaborator Author

commented Apr 5, 2018

@janko-m Sweet. Yeah, it definitely makes more sense that the guide lives over in that repo.

For starters, I forked the most recently updated buildpack, then renamed it and updated the README:
https://github.com/mokolabs/heroku-buildpack-libvips

But I'm really thinking about starting from scratch with a brand new modern buildpack that isn't a fork.

@janko

This comment has been minimized.

Copy link
Owner

commented Apr 5, 2018

But I'm really thinking about starting from scratch with a brand new modern buildpack that isn't a fork.

Wow, that buildpack has some deep level of forks 😃. In any case, that sounds good to me!

@mokolabs

This comment has been minimized.

Copy link
Collaborator Author

commented Apr 5, 2018

Okay, so I've got two repos for this now.

The first is a slightly tweaked version of the most recently updated vips buildpack:
https://github.com/mokolabs/heroku-buildpack-vips

I'll be using that just for testing and to see how the existing buildpacks work in practice.

The second repo is for the brand new buildpack:
https://github.com/mokolabs/heroku-buildpack-libvips

I'm also going with heroku-buildpack-libvips as the name because it uses the more current libvips terminology and it won't be confused with the dozen or so existing heroku-buildpack-vips forks -- especially when browsing buildpacks on Heroku's Elements marketplace.

@zoras

This comment has been minimized.

Copy link

commented May 9, 2019

Hey guys, I've forked the buildpack at kespry/heroku-buildpack-vips and made it work for myself.

Can you guys checkout if it works the same for you? Feedbacks appreciated :) https://elements.heroku.com/buildpacks/zoras/heroku-buildpack-libvips

@janko

This comment has been minimized.

Copy link
Owner

commented May 19, 2019

@zoras Cool, thanks a lot for making it! I will have a chance to try it out soon, and will let you know how it worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.