Skip to content

Commit 12c6d92

Browse files
fix(docker): update scripts and add dependencies for splc stats
1 parent 1dc44dd commit 12c6d92

5 files changed

Lines changed: 11 additions & 3 deletions

File tree

replication/splc23-views/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ RUN adduser --disabled-password --home /home/sherlock --gecos '' sherlock
2626
RUN apk add --no-cache --upgrade bash
2727
RUN apk add --update openjdk17
2828

29+
RUN apk add --no-cache tesseract-ocr python3 py3-pip py3-numpy py3-pandas py3-scipy && \
30+
pip3 install --upgrade pip setuptools wheel && \
31+
apk add --no-cache --virtual .build-deps gcc g++ zlib-dev make python3-dev py3-numpy-dev jpeg-dev && \
32+
pip3 install Jinja2 && \
33+
apk del .build-deps
34+
2935
# Change into the home directory
3036
WORKDIR /home/sherlock
3137

@@ -41,6 +47,7 @@ COPY docs holmes/docs
4147
# Copy the docker resources
4248
COPY docker/* ./
4349
COPY replication/splc23-views/docker/* ./
50+
4451
RUN mkdir DiffDetectiveMining
4552
RUN mkdir results
4653

File renamed without changes.

replication/splc23-views/docker/execute.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ else
2929
fi
3030
echo "Collecting results."
3131
cp -r results/* ../results/
32-
python analyze_data.py ../results/validation/current
32+
cd ..
33+
python3 analyze_data.py results/views/current
3334
echo "The results are located in the 'results' directory."
3435

replication/splc23-views/execute.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ for %%A in ("%CD%") do set "currentDir=%%~nxA"
88

99
rem Check if the current directory ends with the target sub-path
1010
if "%currentDir:~-9%"=="%targetSubPath%" (
11-
docker run --rm -v "%cd%\results":"/home/sherlock/results" diff-detective %*
11+
docker run --rm -v "%cd%\results":"/home/sherlock/results" diff-detective-views %*
1212
) else (
1313
echo error: the script must be run from inside the splc23-views directory, i.e., DiffDetective\replication\%targetSubPath%
1414
)

replication/splc23-views/execute.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ fi
1010
if [[ $# -gt 0 ]]; then
1111
echo "Executing $1"
1212
fi
13-
docker run --rm -v "$(pwd)/results":"/home/sherlock/results" diff-detective "$@"
13+
docker run --rm -v "$(pwd)/results":"/home/sherlock/results" diff-detective-views "$@"

0 commit comments

Comments
 (0)