Skip to content

Commit 5800cbb

Browse files
committed
Issue #3 - Missing drivers
* Added necessary command line parameters for Google Chrome * Created a workaround for a path problem for Google Chrome
1 parent f4370d6 commit 5800cbb

File tree

4 files changed

+17
-15
lines changed

4 files changed

+17
-15
lines changed

Dockerfile

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,25 @@ VOLUME /opt/robotframework/tests
99
COPY dnf/google-chrome.repo /etc/yum.repos.d/google-chrome.repo
1010

1111
RUN dnf upgrade -y\
12-
&& dnf install -y chromedriver-55.0.2883.87-1.fc25\
13-
firefox-50.1.0-3.fc25\
14-
google-chrome-stable-55.0.2883.87-1\
12+
&& dnf install -y\
13+
chromedriver-55.0.2883.87-1.fc25\
14+
firefox-51.0.1-1.fc25\
15+
google-chrome-stable-56.0.2924.76-1\
1516
python-pip-8.1.2-2.fc25\
1617
xorg-x11-server-Xvfb-1.19.1-2.fc25\
1718
&& dnf clean all
1819

1920
RUN pip install robotframework==3.0.1\
2021
robotframework-selenium2library==1.8.0
2122

22-
ADD drivers/geckodriver-v0.13.0-linux64.tar.gz /opt/drivers/
23+
ADD drivers/geckodriver-v0.13.0-linux64.tar.gz /opt/robotframework/drivers/
2324

24-
ENV PATH=/opt/drivers:$PATH
25+
COPY bin/google-chrome.sh /opt/robotframework/bin/google-chrome
2526

26-
ENTRYPOINT ["xvfb-run", "--server-args='-screen 0 1920x1080x24'", "robot", "--outputDir", "/opt/robotframework/reports", "/opt/robotframework/tests"]
27+
# FIXME: below is a workaround, as the path is ignored
28+
RUN mv /opt/google/chrome/google-chrome /opt/google/chrome/google-chrome-original\
29+
&& ln -sfv /opt/robotframework/bin/google-chrome /opt/google/chrome/google-chrome
30+
31+
ENV PATH=/opt/robotframework/bin:/opt/robotframework/drivers:$PATH
32+
33+
ENTRYPOINT ["xvfb-run", "--server-args=-screen 0 1920x1080x24 -ac", "robot", "--outputDir", "/opt/robotframework/reports", "/opt/robotframework/tests"]

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ The versioning of this image follows the one of Robot Framework:
1515

1616
The versions used in the latest version are:
1717

18-
* Robot Framework 3.0
18+
* Robot Framework 3.0.1
1919
* Robot Framework selenium2library 1.8.0
20-
* Firefox 50.1
21-
* Google Chrome 55.0
20+
* Firefox 51.0
21+
* Google Chrome 56.0
2222

2323
## Running the container
2424

bin/firefox.sh

Lines changed: 0 additions & 4 deletions
This file was deleted.

bin/google-chrome.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
#!/bin/sh
22

3-
# Xvfb is used to run Chrome in a virtual X server, as there is no graphical interface.
4-
xvfb-run /usr/bin/google-chrome
3+
/opt/google/chrome/google-chrome-original --disable-gpu --no-sandbox $@

0 commit comments

Comments
 (0)