From abc7f067ff20bc2bd07d9236c30055549481547c Mon Sep 17 00:00:00 2001 From: jwansek Date: Sun, 1 May 2022 16:03:24 +0100 Subject: Finished plagarism detector, added docs --- docs/source/docker.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'docs/source/docker.rst') diff --git a/docs/source/docker.rst b/docs/source/docker.rst index 7c3237a..232c7f4 100644 --- a/docs/source/docker.rst +++ b/docs/source/docker.rst @@ -41,4 +41,10 @@ To list assessments in the database using docker: .. code-block:: bash - sudo docker run -it --entrypoint python --rm smarker assessments.py --list yes \ No newline at end of file + sudo docker run -it --entrypoint python --rm smarker assessments.py --list yes + +.. code-block:: bash + + touch out/report.pickle && sudo docker run -v "$(pwd)/out/report.pickle":/Smarker/plagarism_report_details.pickle -it --entrypoint python --rm smarker assessments.py --plagarism_report example + +If a file doesn't exist before it's passed through as a volume in docker, it will be created automatically as a *directory*- this causes issues if the docker image produces a file so we make a blank file first. \ No newline at end of file -- cgit v1.2.3