From a2fc659eda64744ba511fa557f214b99c2ce96f9 Mon Sep 17 00:00:00 2001 From: hrj Date: Tue, 11 Oct 2022 07:36:35 +0530 Subject: [PATCH] fix jar paths in dockerfile and tests --- Dockerfile | 2 +- tests/run.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6e6a941..a737b37 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,7 +30,7 @@ ENV PATH=$PATH:${JAVA_HOME}/bin FROM base-core WORKDIR /lc-core -COPY --from=builder /build/target/scala-3.1.2/LibreCaptcha.jar . +COPY --from=builder /build/target/scala-3.2.0/LibreCaptcha.jar . RUN mkdir data/ EXPOSE 8888 diff --git a/tests/run.sh b/tests/run.sh index 8573d85..2343ee4 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -4,7 +4,7 @@ python3 -m venv testEnv source ./testEnv/bin/activate pip install locust mkdir -p data/ -java -jar target/scala-3.1.2/LibreCaptcha.jar & +java -jar target/scala-3.2.0/LibreCaptcha.jar & JAVA_PID=$! sleep 4 @@ -22,7 +22,7 @@ echo Run functional test cp data/config.json data/config.json.bak cp tests/debug-config.json data/config.json -java -jar target/scala-3.1.2/LibreCaptcha.jar & +java -jar target/scala-3.2.0/LibreCaptcha.jar & JAVA_PID=$! sleep 4