-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use environment variable to run as a local server with better parameters
- Loading branch information
1 parent
0462eb3
commit 132abfa
Showing
3 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash | ||
|
||
docker run -p 4000:4000 -v $PWD/data:/data -v /var/run/docker.sock:/var/run/docker.sock -e BENCH_ROOT=$PWD -it fredtingaud/bench-runner ./start-build-bench | ||
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-build-bench |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Environment variables to run a local instance of Quick Bench or Build Bench | ||
|
||
# Disable CPU and memory throttling | ||
UNLIMITED_RESOURCES=true | ||
|
||
# Make it possible to download additional containers from the front-end | ||
ALLOW_CONTAINER_DOWNLOAD=true | ||
|
||
############### | ||
# Quick Bench # | ||
############### | ||
|
||
# Maximum time to run a benchmark (in seconds). | ||
# Increasing this number above the OS wide TCP connection timeout will have no effect | ||
QB_TIMEOUT=300 | ||
|
||
# Maximum length of the code that can be sent. -1 to deactivate the check | ||
QB_CODE_LIMIT=-1 | ||
|
||
############### | ||
# Build Bench # | ||
############### | ||
|
||
# Maximum time to run a benchmark (in seconds). | ||
# Increasing this number above the OS wide TCP connection timeout will have no effect | ||
BB_TIMEOUT=300 | ||
|
||
# Maximum number of runs of the compilation. | ||
# It is an upper limit, but the script will automatically scale down if there is a risk of reaching the timeout. | ||
BB_MAX_ITERATION=30 | ||
|
||
# Maximum length of the code that can be sent. -1 to deactivate the check | ||
BB_CODE_LIMIT=-1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash | ||
|
||
docker run -p 4000:4000 -v $PWD/data:/data -v /var/run/docker.sock:/var/run/docker.sock -e BENCH_ROOT=$PWD -it fredtingaud/bench-runner ./start-quick-bench | ||
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 |