browserstack / docker-browserstack-local

Docker official Image packaging for Browserstack Local Binary
12 stars 4 forks source link

docker-browserstack-local

Docker official Image packaging for Browserstack Local Binary

Installation

Running the binary inside container with default command

Running the binary inside container with custom arguments

In order to run binary with custom arguments simply run the binary as follows. docker run -it <build name:tag> <arguments>

Eg. Running binary inside container with force local and verbose 3 enabled docker run -it browserstack/local --key <access key> --verbose 3 --force-local

Running tests for a service running on the host.

Since the binary is running inside the docker container, it would try to resolve all the host requests internally. Following methods can be used in order to overcome this limitation.

Method 1

For Linux

For Mac and Windows

Method 2

Run the server on a public interface (eg. 0.0.0.0 ) and use the public address in your test scripts. (Disclaimer : Please do understand the risk of running a service on public interface before following this method ).

FAQ's