Skip to content

Dockerfile for QtWebDriver #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 27, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Dockerfile to build a Webdriver for QT5
# Check port mapping when running the container
# e.g:
# $ docker run -ti --rm -p 9531:9517 latest:latest --verbose

FROM alexzaporozhets/ubuntu-qt5.4.2
#FROM icsinc/qt5.5.0-x64
#FROM ubuntu:trusty
MAINTAINER Hugues Ekra <[email protected]>
LABEL vendor="Cisco Systems"
LABEL license="LGPLv2.1"
LABEL version="1.3.3"

#ENV QTDIR /opt/qt55
ENV QTDIR "/opt/Qt5.4.2/5.4/gcc_64"
ENV QT_PLUGIN_PATH $QTDIR/plugins
ENV QT_QPA_PLATFORM offscreen
ENV QT_QPA_FONTDIR /opt/Qt5.4.2/5.4/Src/qtbase/lib/fonts
WORKDIR /opt

# Build
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \
&& sudo apt-get update && sudo apt-get install -y \
git g++ gyp xvfb libicu-dev libegl1-mesa-dev libgles2-mesa-dev \
&& git clone --verbose --progress https://github.com/cisco-open-source/qtwebdriver \
&& cd qtwebdriver \
&& cp ./qt5_sample_config.gypi ./wd.gypi \
&& sed -i "s@\/home\/hekra01\/qt@$QTDIR@g" wd.gypi \
&& ./build.sh

# hardcoded path, wait for fix https://github.com/docker/docker/issues/29110
ENV WD_PATH /opt/qtwebdriver/out/dist/desktop/release/bin
ENV PATH $PATH:$WD_PATH

# Run
#ENTRYPOINT ["/bin/sh", "-c", "xvfb-run -a WebDriver"]
ENTRYPOINT ["WebDriver"]