Public | Automated Build

Last pushed: 2 months ago
Short Description load testing
Full Description Docker Image

Use in docker, for great portability!


Assuming you have a 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 by default!

Run without building your own image

Alternatively, if you don't have a requirements.txt file, you can run a temporary, anonymous container by sharing your into it. Assuming you have a file in the current folder you're in, you can run with this command:

docker run --rm -v `pwd`:/locust -p 8089:8089 christianbladescb/locustio --host http://mysite

You will also be able to access the web interface at http://localhost:8089


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 --host= --master
$ docker run -d --name slave --link master mylocust -f --host= --slave --master-host=master 
Docker Pull Command