Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

It should be possible to use the Docker image directly as docker run instead of local.sh #50

Closed
scherniavsky opened this issue Nov 17, 2017 · 1 comment

Comments

@scherniavsky
Copy link
Collaborator

Similarly to https://github.com/hakobera/docker-locust
It would simplify the flow and allow to get rid of docker-compose.

@scherniavsky scherniavsky changed the title Docker image can be used directly as docker run instead of local.sh Docker image should be used directly as docker run instead of local.sh Nov 17, 2017
@scherniavsky scherniavsky changed the title Docker image should be used directly as docker run instead of local.sh It should be possible to use the Docker image directly as docker run instead of local.sh Nov 18, 2017
@scherniavsky
Copy link
Collaborator Author

Added ROLE=standalone that spins up controller, master and slaves in the same container.
E.g.:

  • Automatic testing of example.com:
    docker run -i -v ./example:/opt/script -e TARGET_HOST=http://example.com -e LOCUST_FILE=simple.py -e ROLE=standalone -e AUTOMATIC=1 -e DURATION=10 -e HATCH_RATE=1 -e USERS=0 docker-locust

  • Automatic testing of localhost:
    docker run --net=host -i -v ./example:/opt/script -e TARGET_HOST=http://localhost -e LOCUST_FILE=simple.py -e ROLE=standalone -e AUTOMATIC=1 -e DURATION=10 -e HATCH_RATE=1 -e USERS=0 docker-locust

  • Manual testing of localhost:
    docker run --net=host -i -v ./example:/opt/script -e TARGET_HOST=http://localhost -e LOCUST_FILE=simple.py -e ROLE=standalone -e DURATION=10 -e HATCH_RATE=1 -e USERS=0 docker-locust

@budtmo budtmo closed this as completed Nov 29, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants