Docker version of ClamAV REST API
Run the following steps to get base image available
- Clone this Repo
- Create new branch
- Make any changes you require
- Push branch to Github
- Open Pull Request
- Image should be build in quay.io with
DRONE_BUILD_NUMBER
tag - Image will be security scanned
- When image has been approved Pull Request is merged
- Image gets tagged with
latest
tag in quay.io
Container should then be available for use as the base image
Image can also be tagged manually with version of your choice (replace v1.0.0 with the tag you actually want to use):
git tag v1.0.0
git push origin v1.0.0
To build local copy of quay.io/ukhomeofficedigital/docker-clamav-rest:1.0.0 run:
docker-compose build
To start local copy of quay.io/ukhomeofficedigital/docker-clamav-rest:1.0.0 run:
docker-compose run -d
Run:
$ echo 'X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*' > virus
$ curl -i -k -F "name=virus" -F "file=@./virus" http://localhost:8080/scan
HTTP/1.1 200 OK
Content-Type: text/plain;charset=ISO-8859-1
Content-Length: 22
Server: Jetty(8.1.15.v20140411)
Everything ok : false
$ echo test > notvirus
$ curl -i -k -F "name=notvirus" -F "file=@./notvirus" http://localhost:8080/scan
HTTP/1.1 200 OK
Content-Type: text/plain;charset=ISO-8859-1
Content-Length: 21
Server: Jetty(8.1.15.v20140411)
Everything ok : true
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Pawel Niemiec - Initial work - GitHub
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details.