https://github.com/wdhif/docker-antivirus
Antivirus for Docker with ClamAV and Atomic
https://github.com/wdhif/docker-antivirus
antivirus atomic clamav docker docker-antivirus hacktoberfest
Last synced: 6 months ago
JSON representation
Antivirus for Docker with ClamAV and Atomic
- Host: GitHub
- URL: https://github.com/wdhif/docker-antivirus
- Owner: wdhif
- License: apache-2.0
- Created: 2017-05-24T09:52:58.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-10-05T18:09:41.000Z (about 4 years ago)
- Last Synced: 2023-03-08T10:07:12.730Z (over 2 years ago)
- Topics: antivirus, atomic, clamav, docker, docker-antivirus, hacktoberfest
- Language: Ruby
- Homepage:
- Size: 32.2 KB
- Stars: 4
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-antivirus
Docker Antivirus with ClamAV and Atomic

## 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
```2. Install the application dependencies.
```
bundle install
```3. 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. https://github.com/projectatomic/atomic/issues/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