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

Add user account (support Display from Host) #425

Open
Hamsterbau opened this issue Dec 1, 2022 · 0 comments
Open

Add user account (support Display from Host) #425

Hamsterbau opened this issue Dec 1, 2022 · 0 comments

Comments

@Hamsterbau
Copy link

Hamsterbau commented Dec 1, 2022

Is your feature request related to a problem? Please describe.
Before having a headless test suite for GUI testing, it is nice to see in real, what is going on.
For this i tried to use your great image, what failed because of missing home folder, where X11 wants to create some hidden folders/files.

Describe the solution you'd like
Just add a user with home folder to the image:

# Create a specific robot user - especially needed for X11 magic from host
RUN useradd ${ROBOT_UID}

Describe alternatives you've considered
I build my own image based on yours. But perhaps in the future this is not needed anymore? :)

Additional context
With user in place, under linux with X11 just start image with following parameter:

--env="DISPLAY=$DISPLAY"

and robot GUI tests (Selenium/Playwright) with headless mode deactivated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant