0

I tried using this custom buildpack https://github.com/gimlids/heroku-buildpack-python-opencv

But compilation fails due to a 15 minute timeout.

I also tried setting COMPILE_TIMEOUT: 6000 but it Didn't help

Xyand
  • 4,470
  • 4
  • 36
  • 63

3 Answers3

2

to get around the 15 minute compile time constraint for buildpacks on heroku, use heroku-anvil to compile the slug.

mutexkid
  • 1,076
  • 1
  • 12
  • 12
  • How exactly do you use heroku-anvil? – Peter Tseng Nov 26 '13 at 23:16
  • check out the docs on https://github.com/ddollar/heroku-anvil. It's installed as a heroku plugin. After installing, you would run heroku build -r myapp . This would compile the slug and release to the remote. – mutexkid Feb 10 '14 at 16:30
0

I found a buildpack that worked well from a similar question about Heroku and OpenCV with Python. I tried to replicate Diogo's work and added a few additional steps to add ffmpeg support and documented the steps in a blog post: How to Install OpenCV on Heroku.

Community
  • 1
  • 1
Scott Lobdell
  • 527
  • 1
  • 4
  • 11
0

use a 'one-off' dyno (aka heroku run bash) to compile, push the results to gihub (or store it anywhere else in the cloud), then use that url for your buildpack.

tl, dr; - avoid to re-compile each and every time.

berak
  • 39,159
  • 9
  • 91
  • 89