Skip to content

Commit f4370d6

Browse files
committed
Issue #3 - Missing drivers
* Added the Gecko driver * Updated the Dockerfile to also install the Chrome driver
1 parent e2c9f05 commit f4370d6

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

Dockerfile

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,18 @@ 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\
12+
&& dnf install -y chromedriver-55.0.2883.87-1.fc25\
13+
firefox-50.1.0-3.fc25\
1314
google-chrome-stable-55.0.2883.87-1\
14-
python-pip\
15-
wxPython\
16-
xorg-x11-server-Xvfb\
15+
python-pip-8.1.2-2.fc25\
16+
xorg-x11-server-Xvfb-1.19.1-2.fc25\
1717
&& dnf clean all
1818

19-
RUN pip install robotframework==3.0\
19+
RUN pip install robotframework==3.0.1\
2020
robotframework-selenium2library==1.8.0
2121

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

25-
ENV PATH=/opt/robotframework/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
24+
ENV PATH=/opt/drivers:$PATH
2625

27-
ENTRYPOINT ["robot", "--outputDir", "/opt/robotframework/reports", "/opt/robotframework/tests"]
26+
ENTRYPOINT ["xvfb-run", "--server-args='-screen 0 1920x1080x24'", "robot", "--outputDir", "/opt/robotframework/reports", "/opt/robotframework/tests"]
1.72 MB
Binary file not shown.

0 commit comments

Comments
 (0)