zalando-incubator / zelt

A command-line tool for orchestrating the deployment of Locust in Kubernetes.
https://zelt.readthedocs.io
MIT License
36 stars 3 forks source link

Running zelt in docker #29

Open Olamyy opened 4 years ago

Olamyy commented 4 years ago

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

thilp commented 4 years ago

Just discussed with Ola and I learned additional things: