Sign inSign up

kjmkznr/locust

By kjmkznr

•Updated almost 11 years ago

locust

Image
0

981

kjmkznr/locust repository overview

⁠docker-locust

Docker base image for locust master/slave/standalone.

⁠How to use

This is a base image of locust. So you have to build your own docker image from this image like this.

FROM kjmkznr/locust

ADD ./test /test
ENV SCENARIO_FILE /test/locustfile.py

Then build it and run.

$ docker build -t locust-test .
⁠standalone
$ docker run -e LOCUST_MODE=standalone -e TARGET_URL=http://127.0.0.1 locust-test
⁠distribution
⁠master
$ docker run \
  -e LOCUST_MODE=master \
  -e TARGET_URL=http://<your-target-server> \
  locust-test
⁠slave
$ docker run \
  -e LOCUST_MODE=slave \
  -e MASTER_HOST=http://<master-server-ip> \
  -e TARGET_URL=https://<your-target-server> \
  locust-test

Tag summary

Content type

Image

Digest

sha256:1fc657f25…

Size

267.3 MB

Last updated

almost 11 years ago

docker pull kjmkznr/locust