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).
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 --helpYou 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.pySee the entrypoint.sh script for exact details on how Dolos is invoked.
This repository is provided under the MIT licence (include in LICENSE. Dolos is also covered by the MIT License.