I have a docker container running a rails app (let's call it container A) that needs to do some scraping with watir webdriver using firefox as backend.
I have firefox installed in another container (container B) and I want to be able to pass in container A something like:
Selenium::WebDriver::Firefox::Binary.path= $DOCKER_RUN_CONTAINER_A
So, each time watir launches firefox a new instance of CONTAINER_A launches a new firefox.
I know it's easy to make containers communicate using ports, but how about executables? And, by the way, does it look like a good design idea isolating firefox in a separate container?