FredTingaud / bench-runner

Docker runner for build-bench
270 stars 32 forks source link

How to run it on windows? #8

Closed Bigous closed 2 years ago

Bigous commented 2 years ago

Windows does not came with /var/run/docker.sock how can we avoid this?

docker run -p 4000:4000 -v "$(pwd)/data:/data" --env-file local.env -e "BENCH_ROOT=$(pwd)" -it fredtingaud/bench-runner ./start-build-bench
Listening to commands on port 4000
(node:10) UnhandledPromiseRejectionWarning: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

(Use `node --trace-warnings ...` to show where the warning was created)
(node:10) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:10) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

The software starts at port 4000 but with no compiler and when I try to download one, it stays in a blank page forever...

Bigous commented 2 years ago

Ok, found the solution. Just puts an extra / in the command...

docker run -p 4000:4000 -v "$(pwd)/data:/data" -v "//var/run/docker.sock:/var/run/docker.sock" --env-file local.env -e "BENCH_ROOT=$(pwd)" -it fredtingaud/bench-runner ./start-quick-bench