Skip to content

Commit 5da0503

Browse files
authored
Merge pull request #5 from ppodgorsek/issue-3
Issue #3 - Missing drivers
2 parents e2c9f05 + 5800cbb commit 5da0503

File tree

5 files changed

+19
-18
lines changed

5 files changed

+19
-18
lines changed

Dockerfile

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +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 firefox-50.1.0-1.fc25\
13-
google-chrome-stable-55.0.2883.87-1\
14-
python-pip\
15-
wxPython\
16-
xorg-x11-server-Xvfb\
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\
16+
python-pip-8.1.2-2.fc25\
17+
xorg-x11-server-Xvfb-1.19.1-2.fc25\
1718
&& dnf clean all
1819

19-
RUN pip install robotframework==3.0\
20+
RUN pip install robotframework==3.0.1\
2021
robotframework-selenium2library==1.8.0
2122

22-
COPY bin/firefox.sh /opt/robotframework/bin/firefox
23+
ADD drivers/geckodriver-v0.13.0-linux64.tar.gz /opt/robotframework/drivers/
24+
2325
COPY bin/google-chrome.sh /opt/robotframework/bin/google-chrome
2426

25-
ENV PATH=/opt/robotframework/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
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
2632

27-
ENTRYPOINT ["robot", "--outputDir", "/opt/robotframework/reports", "/opt/robotframework/tests"]
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 $@
1.72 MB
Binary file not shown.

0 commit comments

Comments
 (0)