FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

robotframework-browser/docker at master · simonmeggle/robotframework-browser · GitHub

Latest commit

 

History

History
 
 

README.md

Robotframework-browser dockerfiles

Dockerfile.tests is used for our own CI and docker image build flow.

Dockerfile.latest_release is used as the base to build our published docker images. See packages for latest released docker image on github packages, and dockerhub tags for latest image on dockerhub.

Example pull: docker pull marketsquare/robotframework-browser

Our published Dockerfile can be used as a base for running your own test suites inside docker.

The image comes with latest robotframework-browser and robotframework, and with pre-initialized browsers and other dependencies for running headful tests in the container.

Example usage:

docker run --rm -v $(pwd)/atest/test/:/test --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json marketsquare/robotframework-browser:latest bash -c "robot --outputdir /test/output /test"

docker run -v is used to mount the directory containing tests on the supervising machine. In this example robot output will also be output inside the test directory

When testing with chrome we recommend downloading a copy of seccomp_profile.json security settings and using the following docker run flags --ipc=host --security-opt seccomp=seccomp_profile.json for best compatibility. Explanations and the seccomp_profile.json can be found here

(Get it directly with wget https://raw.githubusercontent.com/microsoft/playwright/master/utils/docker/seccomp_profile.json )

All dependencies are installed to support running tests as pwuser in the docker image. Running tests as root or other non pwuser can cause problems.

Build docker file locally

To build docker image locally, go ./docker folder and give command

cd docker
docker build --no-cache -t tidii --file Dockerfile.latest_release .

or output to file:

cd docker
docker build --no-cache -t tidii --file Dockerfile.latest_release . > out.txt 2>&1

Run test with locally build image

docker run -v ./atest/:/test  -t tidii:latest bash -c "robot --outputdir /test/output /test"

To start bash in container

docker run -i  -t tidii:latest bash

Back | FazBrowse Home | New Git URL