fix jar paths in dockerfile and tests

This commit is contained in:
hrj 2022-10-11 07:36:35 +05:30
parent a020426329
commit a2fc659eda
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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