Coder Social home page Coder Social logo

locusts's People

Contributors

aignas avatar hiromishikata avatar sernst avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

locusts's Issues

FileNotFoundError with open '/scripts/locust.config.json'

Hi,

I'm having that error when trying to create a docker container.

$docker run -it --rm -v scripts:/scripts swernst/locusts --master-host=127.0.0.1
Traceback (most recent call last):
File "/run.py", line 79, in
run()
File "/run.py", line 66, in run
args = parse()
File "/run.py", line 12, in parse
with open('/scripts/locust.config.json') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/scripts/locust.config.json'

Regards,

Juan.

Code License

Please consider adding a permissive license to this repository. As is, it is not legal for the public to create derivative works from your examples. I would like to use your python scripts and Dockerfile as an example/base for custom scripts but this is currently not possible.

I suggest the MIT license, but it's up to you.

How would I provide the host's localhost?

Hey @sernst, I'm trying to provide localhost:3000 as the locust target. I tried using network_mode: 'host' in the compose file as well as setting an extra-hosts and aliasing my host machine. But neither approach worked.

Have you tried something like this before? Its purely for testing out the script against my dev application.

Thanks!

error when trying to run example from readme.md

I pulled down the docker image and created a ./scripts folder, but when I try to run the example command, I get an error:

docker: Error response from daemon: create ./scripts: "./scripts" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path.

command:

docker run -it --rm \
    -v ./scripts:/scripts \
    swernst/locusts \
    --master-host=127.0.0.1

I was able to get around this error by modifying the Dockerfile to Mount ./scripts, but even then I can't get the image to run properly. Any ideas? Your docker image was the highest downloaded for locust so I was thinking it would be the best chance of success.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.