3 ms·
I've been doing some playing around with dev containers for a while now and am loving the experience so far. The one thing I am not super clear on however is do
by mhoad 6y ago
I've been doing some playing around with dev containers for a while now and am loving the experience so far. The one thing I am not super clear on however is doing end to end browser based testing in Web Apps. I didn't find a lot of good documentation on this currently. I can't tell if the "correct" solution is to also load something like headless chrome into the Dockerfile and install it manually or go down the path of trying to set things up in a different container with a docker-compose approach.
- htatche 6y agoA headless chrome works for testing. You can even open GUI apps (at least with X11 on Linux) from the container itself, and it will use the host's X session (chrome --no-sandbox). I've been using a containerized Rails app with VSCode for a while now and absolutely love it.
- mhoad 6y agoYou wouldn't happen to have an example Dockerfile you could share at all would you? The examples I have come across online so far did't look super straightforward.
- Shicholas 6y agoWe found website testing inside a Docker container to be tough, so we still run Cypress on a native machine, but our web process is still ran within the Docker container. In CI, we use the default Cypress GitHub action which runs on the CI native system, and all of our servers are spun up with docker-compose. Source: https://github.com/NeonLaw/codebase/blob/development/.github/workflows/continuous_integration.yml#L52-L57 https://github.com/NeonLaw/codebase/blob/development/.github...