Execute WebdriverIO in a Docker container.
## Usage
It needs a Selenium instance running, you could have a look here: elgalu/docker-selenium.
### Run
docker run --rm -it -v $(pwd):/tests --net=host azzra/wdio
Usage of
--net=host
is only required if Selenium is on your localhost. Without, the container will resolve localhost as itself.
You can configure the Selenium host with environment variables SELENIUM_HOST
& SELENIUM_PORT
:
docker run --rm -it -v $(pwd):/tests --net=host -e SELENIUM_PORT=5555 azzra/wdio
#### I need a shell !
You need to overwrite the Dockerfile entrypoint :
docker run -i -v $(pwd):/tests --entrypoint sh -t azzra/wdio