5 ms·
Serious question: What do you gain from having an extra layer like docker?
by spikej 10y ago
Serious question: What do you gain from having an extra layer like docker?
- franciskim 10y agoSelenium grid runs in docker, so it's easy to have multiple instances running. Better control.
- elsonrodriguez 10y agoAlso, if use Kubernetes to manage the grid you can scale out to your credit card limit on GKE: https://github.com/kubernetes/kubernetes/tree/master/examples/selenium https://github.com/kubernetes/kubernetes/tree/master/example...
- ramblenode 10y agoWhat are the advantages of this versus a thread pool of web drivers? I'm not really familiar with Selenium Grid.
- paulryanrogers 10y agoGrid can dynamically dispatch based on the browser and capabilities you want when you create the session.
- siegecraft 10y agoWell it does make it extra easy to deploy a scrape node to any type of machine you might encounter (and having a diverse set of source IPs is extra important for scraping; that means you might need to deploy to AWS, Azure, Google Cloud, rackspace, digitalocean, random vps provider X and so on). So instead of having to have custom provisioning profiles for every hosting provider/image combination, you just need to get docker running on a host and you're good to go.
- dchuk 10y agoBecause you can use pre-packaged Selenium in Docker images with a few commands: https://github.com/SeleniumHQ/docker-selenium https://github.com/SeleniumHQ/docker-selenium