Coder Social home page Coder Social logo

docker-clamav-rest's Introduction

docker-clamav-rest

Docker version of ClamAV REST API

Installing & getting started

Run the following steps to get base image available

  1. Clone this Repo
  2. Create new branch
  3. Make any changes you require
  4. Push branch to Github
  5. Open Pull Request
  6. Image should be build in quay.io with DRONE_BUILD_NUMBER tag
  7. Image will be security scanned
  8. When image has been approved Pull Request is merged
  9. 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

Local build

To build local copy of quay.io/ukhomeofficedigital/docker-clamav-rest:1.0.0 run:

docker-compose build

Run

To start local copy of quay.io/ukhomeofficedigital/docker-clamav-rest:1.0.0 run:

docker-compose run -d

Testing

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

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Pawel Niemiec - Initial work - GitHub

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

docker-clamav-rest's People

Contributors

pawniemiec avatar

Stargazers

Peter Holman avatar  avatar Philippe Koenig avatar

Watchers

James Cloos avatar James Lizamore avatar  avatar Will McGeehin avatar Oli Weighell avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.