-
Notifications
You must be signed in to change notification settings - Fork 58
Docker
hekra01 edited this page Jan 29, 2017
·
25 revisions
QtWebDriver can be deployed using this Dockerfile.
The latest image is available on Dockerhub.
$ docker pull hekra01/qtwebdriver
The usual WebDriver command line parameters are accepted by the container.
By default the container runs QtWebdriver:
- on the default port
9517
- in headless mode (
QT_QPA_PLATFORM=offscreen
).
To run in headed mode unset QT_QPA_PLATFORM
, see Example3 below.
- Exampple 1: Run QtWebDriver in
verbose
mode on the default webdriver port9517
and map to host port9530
.
$ docker run -tid -p 9530:9517 hekra01/qtwebdriver:latest --verbose
- Exampple 2: Run QtWebDriver in
verbose
mode on port9520
and map to host port9530
.
$ docker run -tid -p 9530:9520 hekra01/qtwebdriver:latest --port 9520 --verbose
- Exampple 3: Same as previous run, in "headed" mode (GUI visible).
$ xhost +
$ docker run -tid -p 9530:9520 -e QT_QPA_PLATFORM= -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix hekra01/qtwebdriver:latest --port 9520 --verbose
Home | Build And Run | Releases | Features
Copyright © 1992-2016 Cisco and/or its affiliates