Skip to content

Commit

Permalink
Merge pull request #108 from moko-poi/update-k6-version-to-v0.45.1
Browse files Browse the repository at this point in the history
Update k6 Version in README.md Examples to v0.45.1
  • Loading branch information
szkiba authored Sep 4, 2024
2 parents d3092d7 + 3b25fc5 commit 2507211
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ It is used heavily by k6 extension developers as well as anyone who wishes to ma

The easiest way to use xk6 is via our [Docker image](https://hub.docker.com/r/grafana/xk6/). This avoids having to setup a local Go environment, and install xk6 manually.

For example, to build a k6 v0.43.1 binary on Linux with the [xk6-kafka](https://github.com/mostafa/xk6-kafka) and [xk6-output-influxdb](https://github.com/grafana/xk6-output-influxdb) extensions, you would run:
For example, to build a k6 v0.45.1 binary on Linux with the [xk6-kafka](https://github.com/mostafa/xk6-kafka) and [xk6-output-influxdb](https://github.com/grafana/xk6-output-influxdb) extensions, you would run:

```bash
docker run --rm -it -u "$(id -u):$(id -g)" -v "${PWD}:/xk6" grafana/xk6 build v0.43.1 \
docker run --rm -it -u "$(id -u):$(id -g)" -v "${PWD}:/xk6" grafana/xk6 build v0.45.1 \
--with github.com/mostafa/xk6-kafka@v0.17.0 \
--with github.com/grafana/xk6-output-influxdb@v0.3.0
```
Expand All @@ -36,7 +36,7 @@ On macOS you will need to set the `GOOS=darwin` environment variable to build a
You can do this with the `--env` or `-e` argument to `docker run`:
```bash
docker run --rm -it -e GOOS=darwin -u "$(id -u):$(id -g)" -v "${PWD}:/xk6" \
grafana/xk6 build v0.43.1 \
grafana/xk6 build v0.45.1 \
--with github.com/mostafa/xk6-kafka@v0.17.0 \
--with github.com/grafana/xk6-output-influxdb@v0.3.0
```
Expand All @@ -49,15 +49,15 @@ On Windows you can either build a native Windows binary, or, if you're using WSL
For the native Windows binary if you're using PowerShell:
```powershell
docker run --rm -it -e GOOS=windows -u "$(id -u):$(id -g)" -v "${PWD}:/xk6" `
grafana/xk6 build v0.43.1 --output k6.exe `
grafana/xk6 build v0.45.1 --output k6.exe `
--with github.com/mostafa/xk6-kafka@v0.17.0 `
--with github.com/grafana/xk6-output-influxdb@v0.3.0
```

For the native Windows binary if you're using cmd.exe:
```batch
docker run --rm -it -e GOOS=windows -v "%cd%:/xk6" ^
grafana/xk6 build v0.43.1 --output k6.exe ^
grafana/xk6 build v0.45.1 --output k6.exe ^
--with github.com/mostafa/xk6-kafka@v0.17.0 ^
--with github.com/grafana/xk6-output-influxdb@v0.3.0
```
Expand Down

0 comments on commit 2507211

Please sign in to comment.