zelt
zelt copied to clipboard
Running zelt in docker
Describe the bug
I have a simple docker container where I run zelt. For some reason (the error log is not really clear), I get a NoneType
error.
Zelt version
Output of the command zelt --version
.
1.2.15
To Reproduce
- Create a dockerfile
FROM registry.opensource.zalan.do/stups/ubuntu:18.04-15
ENV REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
RUN apt-get update && apt-get install -y jq python3-dev python3-zmq python3-pip && rm -rf /var/lib/apt/lists/*
RUN pip3 install --upgrade locust
RUN pip3 install zelt
COPY examples /tmp/examples
ENTRYPOINT ["zelt" , "from-locustfile", "/tmp/examples/locustfile/locustfile.py", "--manifests", "/tmp/examples/manifests/combined", "-w", "5"]
- Build and run the docker file :
docker build -t zelt-test-docker . && docker run -i -t zelt-test-docker
- See error
Expected behavior zelt should start the load test with no error.
Screenshots
Just discussed with Ola and I learned additional things:
- it only happens when running in Docker;
- it happens with both major versions of Locust;
- the locustfile used here is the one shipped as example in this repository.