Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hakobera/docker-locust
Docker image for both locust master and slave
https://github.com/hakobera/docker-locust
Last synced: about 1 month ago
JSON representation
Docker image for both locust master and slave
- Host: GitHub
- URL: https://github.com/hakobera/docker-locust
- Owner: hakobera
- License: mit
- Created: 2015-01-06T14:12:24.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-09-18T19:54:15.000Z (over 6 years ago)
- Last Synced: 2024-04-14T09:15:51.857Z (8 months ago)
- Language: Shell
- Size: 183 KB
- Stars: 36
- Watchers: 2
- Forks: 29
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 hakobera/locustADD ./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:// \
locust-test
```#### slave
```
$ docker run \
-e LOCUST_MODE=slave \
-e MASTER_HOST=http:// \
-e TARGET_URL=https:// \
locust-test
```