-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue to install locust-plugins inside locust container when using the locust docker image version 2.8.6 #2069
Comments
Hi @teixeira-fernando! I'm not able to reproduce the error with the exact same Dockerfile that you posted above. I made sure to pull the latest |
Could you try running the |
Hi @heyman. Thanks for the quick reply. I did a few other experiments, and it seems that the issue only happens in a Jenkins agent that I use to build this image. When I built the image locally, it worked fine with version 2.8.6 or any other older version (I used the docker build command that you suggested). It is just really strange because the issue happens inside the docker container, so environment differences should not be a factor. Anyway, I think we can close this issue. I will continue my investigations and see what is happening with this Jenkins agent. |
The log output seems to indicate that the Docker cache was used at some point, which is the only reason I can think of from the top of my head, that might cause this. Maybe you can configure Jenkins to use
Ok! |
I tried to build with |
FROM locustio/locust:latest RUN pip3 install 'locust-plugins[mqtt]' websocket |
While running locust inside of docker I had to install websocket-client instead of websocket |
Describe the bug
When I started to use the latest 2.8.6 locust docker image, I had some issues when trying to install locust-plugins library inside the container, with my own Dockerfile. When I used the version 2.8.5, everything worked fine.
The error that is returned says that there is a permission issue in the installation process:
Expected behavior
We should be able to install other python libraries, including locust-plugins, inside the locust container using the pip command.
Actual behavior
Steps to reproduce
This is my Docker file that I used to reproduce the error:
If you try to build it, it will take the latest version 2.8.6, and the error described above will happen.
Environment
The text was updated successfully, but these errors were encountered: