Skip to content

Commit

Permalink
docs: docker example for replay
Browse files Browse the repository at this point in the history
  • Loading branch information
szkiba committed Jun 1, 2023
1 parent fb84b6d commit 73dd913
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ See [sample PDF report](screenshot/k6-dashboard-report.pdf)
- [Customization](#customization)
- [Examples](#examples)
- [Command Line](#command-line)
- [Docker](#docker-1)

## Download

Expand Down Expand Up @@ -300,4 +301,23 @@ Visualization of the result of a previous test run:
```
./k6 run --out json=test_result.json script.js
./k6 dashboard replay test_result.json
```
```
### Docker
You can also use pre-built k6 image within a Docker container. In order to do that, you will need to execute something like the following:
**Linux**
```plain
docker run -v $(pwd):/work -p 5665:5665 -it --rm ghcr.io/szkiba/xk6-dashboard:latest dashboard replay /work/dashboard/testdata/result.gz
```
**Windows**
```plain
docker run -v %cd%:/work -p 5665:5665 -it --rm ghcr.io/szkiba/xk6-dashboard:latest dashboard replay /work/dashboard/testdata/result.gz
```
The dashboard will accessible on port `5665` with any web browser: http://127.0.0.1:5665

0 comments on commit 73dd913

Please sign in to comment.