This repository contains a Docker file to build a docker image that runs Locust.
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| URL_HOST | Hostname to query, needs to contain the schema (HTTP or HTTPS). | string | yes | |
| URL_PATH | Path to query. | string | yes | |
| CLIENTS | Number of client to emulate. | int | 100 | no |
| HATCHING_RATE | Rate to spawn the number of client to reach CLIENTS. | int | 10 | no |
| OPTIONS | Options to pass to Locust. Don't pass -r or -c as these options are already used by CLIENTS and HATCHING_RATE. | string | --no-web --print-stats | no |
To build this image, run the following command:
make build
To run this Docker image, run the following command:
docker run -d \
--name locust \
-e HOST=https://example.com \
-e URL_PATH=/ \
-e CLIENT=10 \
-e HATCHING_RATE=1 \
renaudhager/locust:latest
Content type
Image
Digest
Size
73.8 MB
Last updated
about 7 years ago
docker pull renaudhager/locust