Public | Automated Build

Last pushed: 2 years ago
Short Description
locust.io load testing
Full Description

Locust.io Docker Image

Use locust.io in docker, for great portability!

Usage

Assuming you have a locustfile.py in the root of your project, make a Dockerfile like this:

FROM christianbladescb/locustio

Then build and run the docker image:

$ docker build -t mylocust .
$ docker run --rm -P mylocust

Any requirements you have listed in your requirements.txt will be installed during the build, and locust runs locustfile.py by default!

Master/Slave

If you want to run in master/slave mode, specify a different file to run, etc, you can pass the appropriate flags to the container.

$ docker run -d --name master -P mylocust -f otherlocustfile.py --host=http://foo.com --master
$ docker run -d --name slave --link master -f otherlocustfile.py --host=http://foo.com --slave --master-host=master
Docker Pull Command
Owner
christianbladescb