Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 847 Bytes

README.md

File metadata and controls

15 lines (10 loc) · 847 Bytes

heroku-buildpack-clamav

A heroku buildpack for setting up a clamd daemon.

Usage

  1. Add heroku buildpack apt: heroku buildpacks:add --index 1 heroku-community/apt
  2. Add Aptfile in root directory with content clamav clamav-daemon clamav-freshclam
  3. Add this buildpack in app.json: { "url": "https://github.com/riskmethods/heroku-buildpack-clamav" }
  4. Change Procfile worker line to this: worker: bin/start-clamd bundle exec sidekiq

Notes

The only change in this buildpack is to not install the virus definiations at slug compile time. Instead the worker that needs them should add a .profile file to pull the virus definitions on boot. This was done because the virus definitions are ~200MB-300MB, and the max slug size on Heroku is 500MB.