Closed teixeira-fernando closed 2 years ago
Hi @cyberw. Looks like it is similar issue to what I reported in this another bug some time ago: https://github.com/locustio/locust/issues/2015
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 locustio/locust
image, and I also tried pinning the version to 2.8.6 using FROM locustio/locust:2.8.6
.
Could you try running the docker build
command with the --no-cache
flag?
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 --no-cache
when it builds, or maybe you can log in to the machine and force a rebuild of the image manually?
Anyway, I think we can close this issue. I will continue my investigations and see what is happening with this Jenkins agent.
Ok!
Maybe you can configure Jenkins to use
--no-cache
when it builds, or maybe you can log in to the machine and force a rebuild of the image manually?
I tried to build with --no-cache
option, but I got the same output. I will see if forcing a rebuild, as you mentioned, could solve it.
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 - OS: Windows 10 Enterprise (OS build 19042.1466) - Python version: Not applicable - Locust version: 2.8.6