Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(loadtest): add support for loadtesting
- Loading branch information
1 parent
bb4942c
commit fcb0428
Showing
8 changed files
with
1,807 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
CORES = 1 | ||
|
||
build: | ||
cd .. && docker build -t locker . | ||
|
||
start: | ||
export CORES=$(CORES); \ | ||
SCRIPT='http-rs.js' \ | ||
docker compose up -d | ||
echo "http://localhost:3000/d/k6/k6-load-testing-results?orgId=1&refresh=5s" | ||
|
||
test: | ||
export CORES=$(CORES); \ | ||
SCRIPT='http-rs.js' \ | ||
docker compose up k6 | ||
|
||
stop: | ||
export CORES=$(CORES); \ | ||
SCRIPT='http-rs.js' \ | ||
docker compose down |
Empty file.
Oops, something went wrong.