inovex / mqtt-stresser

Load testing tool to stress MQTT message broker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Passing certificates from host to containers

Ouroboros75 opened this issue · comments

Hi guys,

I've been trying to use the stresser in the form of docker image on Windows 7 Ultimate using docker Toolbox. Without tls certificate it works great, but when i tried to pass a certificate through the "docker run" command, and even when i tried to bind mount, it still says the cert "doesn't exist" at the path i mounted it to. Here's the command:

$ docker run -v /e/Docker\ Toolbox/:/home inovex/mqtt-stresser -broker tcp://192.168.0.10:8883 -cert /home/stress_client.crt -num-clients 10 -num-messages 150 -rampup-delay 1s -rampup-size 10 -global-timeout 180s -timeout 20

I know i haven't specified CA cert yet, but i suspect to run into the same problem.
Could you let me know what is the intended way to pass in certificate when using the docker image, or if i'm doing anything wrong with the command above

Thank you for your time

Sorry for the late response, missed the notification for your issue.

You have only specified the -cert file, but not the key file for that certificate via -key.

Can you post the complete error message given by mqtt-stresser?

Did you double check the location with a normal ubuntu image like:

docker run -it -v /e/Docker\ Toolbox/:/home ubuntu ls /home