breakwater icon indicating copy to clipboard operation
breakwater copied to clipboard

File recording not possible inside docker container

Open Poeschl opened this issue 2 years ago • 2 comments

Tested it today with recording the canvas with the docker container, but the recording crashed since no ffmpeg was found. :)

Maybe provide a fixed folder for the recording files, which makes the volume mapping easier when running containerized.

Poeschl avatar Jun 16 '23 15:06 Poeschl

What can basically try now is mkdir -p pixelflut && docker run --rm -u 1000:1000 --init -t -p 1234:1234 -p 5900:5900 -p 9100:9100 -v "$(pwd)/pixelflut:/pixelflut" sbernauer/breakwater:0.12.0 --statistics-save-file /pixelflut/statistics.json --video-save-folder /pixelflut However when running in docker the video file seems to be corrupt. I guess some signal traps are not working correctly so that ffmpeg does not terminate successfully.

sbernauer avatar Jun 16 '23 19:06 sbernauer

Sometimes I need to kill the breakwater container to stop it. I assume the SIG_KILLS are not handled correctly.

Poeschl avatar Jun 16 '23 21:06 Poeschl