Skip to content

A simple Docker image to run code similarity using Dolos.

License

Notifications You must be signed in to change notification settings

edulinq/dolos-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dolos Docker

A simple Docker container to run the Dolos code similarity tool.

Dolos already has an official Docker image. For interactive use, we recommend that image. This image is for non-interactive use (e.g., as part of a larger system).

Running

When running the container, all options are passed to the Dolos CLI. The run subcommand will always be used and the --output-destination will be set to out, all other options are blindly passed along.

For example, you can get the help prompt with:

docker run --rm -it ghcr.io/edulinq/dolos-docker --help

You should mount your files in the /dolos directory. A full invocation using source files test1.py and test2.py may look something like:

docker run --rm -it -v "$PWD:/dolos" ghcr.io/edulinq/dolos-docker --output-format csv --language python test1.py test2.py

See the entrypoint.sh script for exact details on how Dolos is invoked.

Licensing

This repository is provided under the MIT licence (include in LICENSE. Dolos is also covered by the MIT License.

About

A simple Docker image to run code similarity using Dolos.

Resources

License

Stars

Watchers

Forks

Packages