diff --git a/bin/run-tests-in-docker.sh b/bin/run-tests-in-docker.sh index c887e80..0407d0c 100755 --- a/bin/run-tests-in-docker.sh +++ b/bin/run-tests-in-docker.sh @@ -19,12 +19,13 @@ set -e docker build --rm -t exercism/javascript-test-runner . # Run the Docker image using the settings mimicking the production environment +# # --mount type=tmpfs,dst=/tmp \ docker run \ --rm \ --network none \ --read-only \ --mount type=bind,src="${PWD}/test/fixtures",dst=/opt/test-runner/test/fixtures \ - --mount type=tmpfs,dst=/tmp \ + --tmpfs /tmp:exec \ --volume "${PWD}/bin/run-tests.sh:/opt/test-runner/bin/run-tests.sh" \ --workdir /opt/test-runner \ --entrypoint /opt/test-runner/bin/run-tests.sh \ diff --git a/bin/run.sh b/bin/run.sh index 28306d7..98fb0eb 100755 --- a/bin/run.sh +++ b/bin/run.sh @@ -89,7 +89,8 @@ echo "" echo "✔️ Using slug : $SLUG" echo "✔️ Using reporter : $REPORTER" -echo "✔️ Using test-root: $INPUT" +echo "✔️ Using srce-root: $INPUT" +echo "✔️ Using test-root: $OUTPUT" echo "✔️ Using base-root: $ROOT" echo "✔️ Using setup-env: $SETUP" diff --git a/run-in-docker.bat b/run-in-docker.bat index 7f449b9..fc497c3 100644 --- a/run-in-docker.bat +++ b/run-in-docker.bat @@ -27,5 +27,5 @@ docker run^ --read-only^ --mount type=bind,src=%cd%/%2,dst=/solution/^ --mount type=bind,src=%cd%/%3,dst=/output/^ - --mount type=tmpfs,dst=/tmp^ + --tmpfs /tmp:exec^ javascript-test-runner %1 /solution/ /output/ diff --git a/run-in-docker.sh b/run-in-docker.sh index ac0eea0..54c9a72 100755 --- a/run-in-docker.sh +++ b/run-in-docker.sh @@ -27,10 +27,11 @@ fi docker build -t javascript-test-runner . # run image passing the arguments +# --mount type=tmpfs,dst=/tmp \ docker run \ --network none \ --read-only \ --mount type=bind,src=$PWD/$2,dst=/solution/ \ --mount type=bind,src=$PWD/$3,dst=/output/ \ - --mount type=tmpfs,dst=/tmp \ + --tmpfs /tmp:exec \ javascript-test-runner $1 /solution/ /output/