Re:Show HN: Wdio – Docker setup for WebdriverIO
by blueimp on Monday March 04, 2019 @07:41AM
(#19300771)
Well you can use the provided images without forking and they both support running Chrome/Firefox headless without X.
But since I'm building this in my personal time there's no professional support nor a guarantee that it won't break, so I would still recommend to fork it.
So for example, in my GitLab CI config, I've simply added the following lines to my job configuration:
I can then simply tell my wdio config that Selenium is running at `selenium` (i.e. `wdio --host=selenium`), and it will work.However, the setup is somewhat brittle, doesn't work with the latest versions of Selenium (and I can't be arsed to fix it), and I think it still starts an X server. If, instead, I could simply point it to an image that runs headless Firefox, is maintained, and intended for use with wdio, then that would be an excellent time saver.
When I have to fork, however, the hurdle to start using this is a lot higher, and the savings of not using the Selenium Java server is not really worth the additional effort.