Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/models/similarity/unit_similarity_module.rb
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def run_jplag_on_done_files(task_definition, tasks_dir, tasks_with_files, unit_c
skip_cluster_string = skip_cluster_check ? '--cluster-skip' : ''

# Run JPLAG on the extracted files. JPlag container should already be in the /jplag/ workdir.
docker_command = "docker exec -i jplag java -jar jplag-jar-with-dependencies.jar #{tasks_dir_split}/submissions #{base_code_string} -l #{file_lang} --similarity-threshold=#{similarity_threshold} #{min_token_string} #{skip_cluster_string} -M RUN -r #{results_dir}/#{task_definition.abbreviation}-result --overwrite"
docker_command = "docker exec -i jplag java -jar jplag-jar-with-dependencies.jar --skip-version-check #{tasks_dir_split}/submissions #{base_code_string} -l #{file_lang} --similarity-threshold=#{similarity_threshold} #{min_token_string} #{skip_cluster_string} -M RUN -r #{results_dir}/#{task_definition.abbreviation}-result --overwrite"
logger.debug "Executing command: #{docker_command}"
system(docker_command)

Expand Down
6 changes: 3 additions & 3 deletions jplag.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM alpine:3.22.1
FROM alpine:3.23.3

ENV JPLAG_VERSION=6.2.0
ENV JPLAG_VERSION=6.3.0
WORKDIR /jplag

RUN apk update && \
apk add --no-cache bash openjdk21 wget && \
apk add --no-cache bash openjdk25-jdk wget && \
wget -O jplag-jar-with-dependencies.jar \
https://github.com/jplag/JPlag/releases/download/v$JPLAG_VERSION/jplag-$JPLAG_VERSION-jar-with-dependencies.jar

Expand Down