Skip to content
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

Running zelt in docker #29

Open
Olamyy opened this issue Jun 19, 2020 · 1 comment
Open

Running zelt in docker #29

Olamyy opened this issue Jun 19, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@Olamyy
Copy link

Olamyy commented Jun 19, 2020

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

  1. 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"]
  1. Build and run the docker file : docker build -t zelt-test-docker . && docker run -i -t zelt-test-docker
  2. See error

Expected behavior
zelt should start the load test with no error.

Screenshots
image

@Olamyy Olamyy added the bug Something isn't working label Jun 19, 2020
@thilp
Copy link
Member

thilp commented Jun 19, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants