Open hupf opened 4 years ago
I have previously had success with sharing the X socket with a container, such that the container can open windows on the host. On Linux and Mac OS, this can be done as follows:
brew cask install xquartz
) and restart your machinexhost local:root
in order to allow the root user from the Docker container to send messages to the X serverenvironment:
- DISPLAY
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:rw
docker-compose up
I have not tested this with the hitobito development repo yet, so far this is just for later reference when we take a look at solving this issue.
I added the DISPLAY var and the volume from @carlobeltrame post. chromium now starts, but the opened window is just blank and I can't see any content. also the specs are failing when running with HEADLESS=false
further engineering is required ...
To debug or write feature specs, it is absolutely necessary to execute them in a non-headless browser. Generally, to do this, the
HEADLESS=false
environment variable can be set. With the current container setup it is not possible to execute the features specs in this mode – a solution has to be engineered and documented.Work around:
app/hitobito
, use the following command to execute one or more feature specs in non-headless mode (Ruby/Bundler must be available, Gems installed):See also #7