I'm trying to use your docker image for gatling tests.
It works great on my computer, as well on my ci product : Bamboo.
At the end of the execution, i store the generated result (gatling web site) into a Bamboo artifact.
The issue here is : the simulation reports are stacking into the gatling/result directory each time a bamboo execution is launched.
So i managed to clean up the environment before gatling execution, and i get an error : permission denied.
I'm not able to delete previous report because, report are created with the root user in the container, and my bamboo user does not have enough privileges.
I have modified your docker file to create a non root user and group that is configured through env variable from the docker run command.
Here, the created docker user is configured with a same group that my bamboo user (let say 1024).
Doing this way, i can clean up my bamboo workspace before gatling run.
As i'm not an docker expert, could you please have a look on my docker file, but i'm not sure this is the best way to do it.
At least, could you consider to add an option to your docker file to enable run from non root user ?
Hello,
I'm trying to use your docker image for gatling tests. It works great on my computer, as well on my ci product : Bamboo. At the end of the execution, i store the generated result (gatling web site) into a Bamboo artifact. The issue here is : the simulation reports are stacking into the gatling/result directory each time a bamboo execution is launched. So i managed to clean up the environment before gatling execution, and i get an error : permission denied. I'm not able to delete previous report because, report are created with the root user in the container, and my bamboo user does not have enough privileges.
I have modified your docker file to create a non root user and group that is configured through env variable from the docker run command. Here, the created docker user is configured with a same group that my bamboo user (let say 1024). Doing this way, i can clean up my bamboo workspace before gatling run.
As i'm not an docker expert, could you please have a look on my docker file, but i'm not sure this is the best way to do it. At least, could you consider to add an option to your docker file to enable run from non root user ?
Thank you