Skip to content
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

[docs]: Add information about set up docker image for video recording #6333

Closed
miherlosev opened this issue Jun 24, 2021 · 1 comment
Closed
Labels
AREA: docker AREA: docs An issue related to the product documentation. TYPE: enhancement The accepted proposal for future implementation.

Comments

@miherlosev
Copy link
Collaborator

miherlosev commented Jun 24, 2021

The official TestCafe's docker image doesn't contain the ffmpeg library due to license restrictions.
So, the video recording feature is not working in the docker image out of box.
To make it work, need to create a new image based on the TestCafe docker image with the installed ffmpeg library.
First, create a new docker file with the following content:
For example, I've used the following Dockerfile:

FROM testcafe/testcafe
USER root
RUN apk add --no-cache ffmpeg
USER user

When build a new image:

docker build -t tc_with_ffmpeg .
docker run -it -v ${PWD}:/tests -w /tests tc_with_ffmpeg chromium test.js --video videos

The built image support the video recording during test execution.

@miherlosev miherlosev added AREA: docker AREA: docs An issue related to the product documentation. TYPE: enhancement The accepted proposal for future implementation. labels Jun 24, 2021
@titerman
Copy link
Contributor

Closed in favour of #7153

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AREA: docker AREA: docs An issue related to the product documentation. TYPE: enhancement The accepted proposal for future implementation.
Projects
None yet
Development

No branches or pull requests

2 participants