Sign inSign up

renaudhager/locust

By renaudhager

•Updated about 7 years ago

Docker image to run Locust

Image
0

2.3K

renaudhager/locust repository overview

⁠Docker Locust

Docker Pulls

⁠Description

This repository contains a Docker file to build a docker image that runs Locust⁠.

⁠Environment variables

NameDescriptionTypeDefaultRequired
URL_HOSTHostname to query, needs to contain the schema (HTTP or HTTPS).stringyes
URL_PATHPath to query.stringyes
CLIENTSNumber of client to emulate.int100no
HATCHING_RATERate to spawn the number of client to reach CLIENTS.int10no
OPTIONSOptions 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-statsno

⁠Build

To build this image, run the following command:

make build

⁠Run

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

Tag summary

Content type

Image

Digest

Size

73.8 MB

Last updated

about 7 years ago

docker pull renaudhager/locust