Rbillon59 / jmeter-docker-compose-starterkit

37 stars 25 forks source link

Issue while exec the jmeter container #7

Closed sattishv closed 11 months ago

sattishv commented 11 months ago

Hi,

We are facing issues while running the container . We were able to build the image. But while running it we are prompted with this error.

exec /opt/entrypoint.sh: no such file or directory.

Even when i tried to build the jmeter image alone i got the same error. Screenshot 2023-10-17 190919

Could you please review and let us know am i doing the right way.

thanks Sattish

Rbillon59 commented 11 months ago

Hello @sattishv

This project is meant to be used with docker-compose. You can find the resources in the README file. The runtime section should cover your needs.

To explain your error. You're trying to use the jmeter image in standalone but actually, the entrypoint.sh does not exist in the container, it's mounted from this repo. To be honest, I'am not even sure you can run my JMeter image in standalone, the error you're seeing is probably the first of many other, because really, this project is tailored to be used with docker compose.

sattishv commented 11 months ago

Thanks for your immediate response. Appreciate it

Initially i executed the project with docker-compose, since i got the same error pasted above . I tried to check the standalone version of it. With docker-compose all the containers started successfully except the jmeter instances Screenshot 2023-10-18 082653 To understand why the jmeter instances exited i checked the container logs . Got the same error pasted below Screenshot 2023-10-18 082709 Not sure whether I missed some configuration. Thanks sattish.

Rbillon59 commented 11 months ago

Are you running the docker compose from the repo root ?

Because the entrypoint.sh needs to be mounted from the repo to the Jmeter containers. If you're using a custom path, you need To update the mount path of that file

sattishv commented 11 months ago

I am running the docker compose from the repo root.

New screenshot

Only difference here, is i am using Windows Subsytem for Linux WSL to invoke docker commands since our OS is windows

sattishv commented 11 months ago

Hi Sorry for the discommode i started again from the demo project. We were able to create and schedule the my-scenario.jmx script with all the containers. Will modify and try to execute our testcases. Thanks

Rbillon59 commented 11 months ago

Awesome ! thanks for letting me know.

Please let me know if everything is ok so I can close the issue

sattishv commented 11 months ago

We can close this issue.