-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Video files are created by root user #1064
Comments
@sandorzelei I don't think it is possible now. However you can use |
@vania-pooh thanks for the quick response. I changed my code to download the videos from the API, I also added the volume to the selenoid configuration. My plan is to let selenoid container keep video files inside the container, because if I use any volume jenkins would not be able to remove these files.
I have this error:
Any idea what should I change in my configuration? |
@sandorzelei you have to set |
@vania-pooh Yes, and I tried to set it, it did not solved the issue.
It also said
But in my case, I do not map the directory to the host but keep in a unnamed volume. I tried this config
|
@vania-pooh I found a workaround that works for me, although if the selenoid container could save the video on a volume instead of the host, the all would be much cleaner. Might worth changing the root user to something else. Thanks for the quick responses and keep up the good work. |
@sandorzelei I also faced the issue, with video files created by root. How I managed to work around it was to add to my CI/CD agent(Jenkins in your case) a small script that creates the folders where the video will be stored and then point the docker-compose to it. For example:
And then in your docker compose go for :
In this way regardless if your video files are created by root, as long as the parent folder is owned by jenkins it should be able to delete it at the end if you wish to do so. Hope this helps. |
Hi @VickoValch, thank you for sharing it, I used the API to download (and remove) the video files into my jenkins workspace, OVERRIDE_VIDEO_OUTPUT_DIR was set to the tmp directory of the host. |
It would be quite nice to have a possibility to specify volume for "docker run video-recorder…" command, which hidden inside. |
Hi,
I added the video recorder to my docker setup on jenkins, it works, but all files are created by root user. My jenkins jobs are running with a 'jenkins' user. Unfortunately jenkins user is not able to remove these video files after they were archived.
I tried to define the user for the video recorder and selenoid:latest-release as well, but no luck.
How can I change the owner of the video files?
The text was updated successfully, but these errors were encountered: