diff --git a/docker/controller/scripts/run.sh b/docker/controller/scripts/run.sh index 1854f0a443..a88dc4ea0f 100755 --- a/docker/controller/scripts/run.sh +++ b/docker/controller/scripts/run.sh @@ -4,4 +4,4 @@ mvn -version gradle -version echo "Wait a while extracting war files... It takes time for the first run." -java -jar ${BASE_DIR}/ngrinder-*.war --port 80 +java -jar -Djava.io.tmpdir=${NGRINDER_HOME}/lib ${BASE_DIR}/ngrinder-*.war --port 80 diff --git a/docker/prepare.sh b/docker/prepare.sh index 2ba3c37db6..529cada543 100755 --- a/docker/prepare.sh +++ b/docker/prepare.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash echo "copying ngrinder-controller" mkdir -p controller/binary -rm controller/binary/ngrinder* +rm -rf controller/binary/ngrinder* cp ../ngrinder-controller/build/libs/*.war controller/binary/