Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
74 lines (59 loc) · 1.54 KB
/
Copy pathMakefile
File metadata and controls
74 lines (59 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
stats:
docker stats
down:
docker compose down
pull:
docker compose pull
start-srv:
docker compose up -d srv01
# k6:
# docker compose run k6 run --vus 1 --duration 30s /scripts/basic.js
srv1:
docker compose down srv01 && docker compose up -d srv01
start-service:
docker compose up -d srv01 srv02 srv03 srv04 srv05 srv06
k6-csv:
docker run -v ./report:/report --rm -i \
grafana/k6 run --out csv=/report/results.csv - < ./scripts/step.js
k6:
docker run \
-v ./scripts:/scripts \
-v ./report:/report \
-p 5665:5665 \
-it --rm grafana/k6 run \
/scripts/basic.js
xk6:
docker run \
-v ./scripts:/scripts \
-v ./report:/report \
-p 5665:5665 \
-it --rm ghcr.io/grafana/xk6-dashboard:latest run \
--out dashboard=report=/report/test-report-$$(date +%Y%m%d%H%M%S).html\
/scripts/step.js
xk6-lb:
docker run \
-v ./scripts:/scripts \
-v ./report:/report \
-p 5665:5665 \
-it --rm ghcr.io/grafana/xk6-dashboard:latest run \
--out dashboard=report=/report/test-reportlb.$$(date +%Y%m%d%H%M%S).html \
/scripts/steplb.js
xk6test:
docker run \
-v ./scripts:/scripts \
-v ./report:/report \
-p 5665:5665 \
-it --rm ghcr.io/grafana/xk6-dashboard:latest run \
--out dashboard=report=/report/$(SCRIPT)-report-$$(date +%Y%m%d%H%M%S).html \
/scripts/$(SCRIPT).js
k6test:
docker run \
-v ./scripts:/scripts \
-v ./report:/report \
-p 5665:5665 \
-it --rm grafana/k6 run \
/scripts/$(SCRIPT).js
k6run:
docker compose run \
-e K6_WEB_DASHBOARD_EXPORT=/report/$(script)-report-$$(date +%Y%m%d%H%M%S).html \
--rm k6 run $(script).js