-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathDockerfile
32 lines (28 loc) · 1.1 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Dockerfile to build a Webdriver for QT5
# Documentation: https://github.com/cisco-open-source/qtwebdriver/wiki/Docker
FROM rabits/qt:5.4-desktop
MAINTAINER Hugues Ekra <[email protected]>
LABEL vendor="Cisco Systems"
LABEL license="LGPLv2.1"
LABEL version="1.3.3"
#Env
ENV QTDIR $QT_DESKTOP
ENV QT_PLUGIN_PATH $QTDIR/plugins
ENV QT_QPA_PLATFORM offscreen
ENV QT_QPA_FONTDIR $QT_PATH/5.4/Src/qtbase/lib/fonts
ENV LD_LIBRARY_PATH $QTDIR/lib:$LD_LIBRARY_PATH
ENV PATH $PATH:$HOME/qtwebdriver/out/dist/desktop/release/bin
# Build
RUN sudo apt-get update && sudo apt-get install -y \
zip wget g++ gyp xvfb xorg libicu-dev libegl1-mesa-dev libgles2-mesa-dev \
libxslt1-dev libgstreamer-plugins-base0.10-dev dbus libdbus-1-dev libxml2-dev dbus-x11\
&& wget http://github.com/cisco-open-source/qtwebdriver/archive/WD_1.X_dev.zip \
&& unzip WD_1.X_dev.zip \
&& rm -f WD_1.X_dev.zip \
&& mv qtwebdriver-WD_1.X_dev qtwebdriver \
&& cd qtwebdriver \
&& cp ./qt5_sample_config.gypi ./wd.gypi \
&& sed -i "s@\/home\/hekra01\/qt@$QTDIR@g" wd.gypi \
&& ./build.sh
# Run
ENTRYPOINT ["WebDriver"]