Skip to content

Commit

Permalink
Fix content format
Browse files Browse the repository at this point in the history
  • Loading branch information
ppcano committed Jan 8, 2024
1 parent 81f5cff commit 64648be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ k6 run -e BASE_URL=https://acmecorp.dev:3333 01.basic.js
</details>

<details>
<summary>Using the k6 Docker image</summary>
<summary>Using k6 Docker image</summary>

If you want to use the [k6 Docker image](https://hub.docker.com/r/grafana/k6) to run k6, you need to run the Quickpizza and k6 containers within the same network.

First, create a Docker network. Then, run Quickpizza, assigning a hostname and connecting to the created network.

```bash
docker network create quickpizza_network
docker run --network=quickpizza_network --hostname=quickpizza --rm -it -p 3333:3333 ghcr.io/grafana/quickpizza-local:latest
docker network create quickpizza_network
docker run --network=quickpizza_network --hostname=quickpizza --rm -it -p 3333:3333 ghcr.io/grafana/quickpizza-local:latest
```

Next, you can use the k6 Docker image to execute the k6 test. Run the k6 Docker container within the same network (`quickpizza_network`) and pass the `BASE_URL` environment variable with the value of the Quickpizza container's hostname as follows:
Expand Down

0 comments on commit 64648be

Please sign in to comment.