Skip to content

lucidworks/docker-antivirus

 
 

Repository files navigation

docker-antivirus

Docker Antivirus with ClamAV and Atomic

docker-antivirus

Usage

docker-antivirus help [COMMAND]                         # Describe available commands or one specific command
docker-antivirus scan -i, --image=IMAGE                 # Scan a docker image
docker-antivirus cleanup                                # Cleanup all folders

If for some reason the temporary directories are not correctly deleted, you can add this command to your cron file

find /tmp/docker-antivirus/* -type d -mtime +10 -exec umount {} + -exec rm -rf {} +

This command with find all subdirectories inside /tmp/docker-antivirus with a modification date older than 10 days. Those directories will be unmounted and then deleted.

Development

  1. Install the dependencies (for centos, atomic is in centos-extras).
yum install gcc-c++ ruby-devel coreutils clamav atomic
  1. Install the application dependencies.
bundle install
  1. Run the project.
bundle exec docker-antivirus help

Troubleshooting

Because of a problem with Atomic regarding the use of a newer glib2 that is not yet in the current dependancies, you can get an ostree error with python. projectatomic/atomic#1018
/usr/bin/python2: symbol lookup error: /lib64/libostree-1.so.1: undefined symbol: g_file_enumerator_iterate
To fix this you just have to update glib2 to the newer version.
yum update glib2

Contributing

  1. Fork it ( https://github.com/wdhif/docker-antivirus/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

Antivirus for Docker with ClamAV and Atomic

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 53.7%
  • Groovy 39.5%
  • Dockerfile 6.0%
  • Shell 0.8%