From 3b25fc59924c3c3ef86b6901edd6b302762d4308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E6=A9=8B=E9=A7=BF?= Date: Thu, 29 Aug 2024 23:19:07 +0900 Subject: [PATCH] Update k6 Version in README.md Examples to v0.45.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 高橋駿 --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bb60ddc..a2345e1 100644 --- a/README.md +++ b/README.md @@ -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 ``` @@ -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 ``` @@ -49,7 +49,7 @@ 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 ``` @@ -57,7 +57,7 @@ docker run --rm -it -e GOOS=windows -u "$(id -u):$(id -g)" -v "${PWD}:/xk6" ` 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 ```