sernst / locusts Goto Github PK
View Code? Open in Web Editor NEWLocust.io docker container for Python 3.8+
Locust.io docker container for Python 3.8+
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.
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.
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!
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.