File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change 1
1
# Dockerfile to build a Webdriver for QT5
2
- # Check port mapping when running the container
3
- # e.g:
4
- # $ docker build --rm=true --no-cache -t latest:latest docker/
5
- # $ docker run -ti --rm -p 9531:9517 latest:latest --verbose
2
+ # Documentation: https://github.com/cisco-open-source/qtwebdriver/wiki/Docker
6
3
7
4
FROM alexzaporozhets/ubuntu-qt5.4.2
8
5
MAINTAINER Hugues Ekra <
[email protected] >
9
6
LABEL vendor="Cisco Systems"
10
7
LABEL license="LGPLv2.1"
11
8
LABEL version="1.3.3"
12
9
13
- # Args
14
- ARG QPA_PLATFORM
15
-
16
10
# Env
17
11
ENV QTDIR "/opt/Qt5.4.2/5.4/gcc_64"
18
12
ENV QT_PLUGIN_PATH $QTDIR/plugins
19
- ENV QT_QPA_PLATFORM ${QPA_PLATFORM:- offscreen}
13
+ ENV QT_QPA_PLATFORM offscreen
20
14
ENV QT_QPA_FONTDIR /opt/Qt5.4.2/5.4/Src/qtbase/lib/fonts
21
15
WORKDIR /opt
22
16
23
17
# Build
24
18
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \
25
19
&& sudo apt-get update && sudo apt-get install -y \
26
- g++ gyp xvfb libicu-dev libegl1-mesa-dev libgles2-mesa-dev \
20
+ g++ gyp xvfb xorg libicu-dev libegl1-mesa-dev libgles2-mesa-dev \
27
21
&& wget https://github.com/cisco-open-source/qtwebdriver/archive/WD_1.X_dev.zip \
28
- && unzip WD_1.X_dev.zip && mv qtwebdriver-WD_1.X_dev qtwebdriver && cd qtwebdriver \
22
+ && unzip WD_1.X_dev.zip \
23
+ && mv qtwebdriver-WD_1.X_dev qtwebdriver \
24
+ && cd qtwebdriver \
29
25
&& cp ./qt5_sample_config.gypi ./wd.gypi \
30
26
&& sed -i "s@\/ home\/ hekra01\/ qt@$QTDIR@g" wd.gypi \
31
27
&& ./build.sh
You can’t perform that action at this time.
0 commit comments