I am running my gatling (https://gatling.io/) based load tests from inside a docker container . Last line in Dockerfile is
ENTRYPOINT ["/bin/scripts/run_test.sh"]
My tests are packaged inside a jar file which is launched using a shell script inside the jar.
While I run the jar directly on the machine but while I run the same with in the docker container it exits gracefully after finishing less than 50% of the job .
My tests peform the following functions :
make an api POST call.
poll for the status of my request till myrequest is fully processed (delay of 30 seconds between consecutive polling attempts).
a get call for the same request to obtain complete response
My docker container exits with status code as 0 which means there are no errors.
I tried using , -d with docker run , nohup for the same CMD ["nohup","/bin/scripts/run_test.sh"] but it didnt work .
I suspect that the shell inside the container is getting killed which is causing the process to exit gracefully.
How can I run this process to make sure it runs in the background till all the operations get finished? Also is there a way to get more verbose logs of docker apart from docker logs ?