Skip to content

Commit a5d44da

Browse files
committed
1 - Add support for Chrome
* Added Google's DNF repository * Created a wrapper to run Chrome in a virtual X server * Updated Firefox to version 50.1 * Updated the base image to Fedora 25
1 parent f033f73 commit a5d44da

File tree

4 files changed

+20
-5
lines changed

4 files changed

+20
-5
lines changed

Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
FROM fedora:24
1+
FROM fedora:25
22

33
MAINTAINER Paul Podgorsek <[email protected]>
44
LABEL description Robot Framework in Docker.
55

66
VOLUME /opt/robotframework/reports
77
VOLUME /opt/robotframework/tests
88

9+
COPY dnf/google-chrome.repo /etc/yum.repos.d/google-chrome.repo
10+
911
RUN dnf upgrade -y\
10-
&& dnf install -y firefox-49.0-2.fc24\
12+
&& dnf install -y firefox-50.1.0-1.fc25\
13+
google-chrome-stable-55.0.2883.87-1\
1114
python-pip\
1215
wxPython\
1316
xorg-x11-server-Xvfb\
@@ -17,6 +20,7 @@ RUN pip install robotframework==3.0\
1720
robotframework-selenium2library==1.8.0
1821

1922
COPY bin/firefox.sh /opt/robotframework/bin/firefox
23+
COPY bin/google-chrome.sh /opt/robotframework/bin/google-chrome
2024

2125
ENV PATH=/opt/robotframework/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2226

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Robot Framework in Docker
1+
# Robot Framework in Docker, with Firefox and Chrome
22

33
## What is it?
44

55
This project consists of a Docker image containing a Robot Framework installation.
66

7-
This installation also contains Firefox and the Selenium library for Robot Framework. The test cases and reports should be mounted as volumes.
7+
This installation also contains Firefox, Chrome and the Selenium library for Robot Framework. The test cases and reports should be mounted as volumes.
88

99
## Versioning
1010

@@ -17,7 +17,8 @@ The versions used in the latest version are:
1717

1818
* Robot Framework 3.0
1919
* Robot Framework selenium2library 1.8.0
20-
* Firefox 49.0
20+
* Firefox 50.1
21+
* Google Chrome 55.0
2122

2223
## Running the container
2324

bin/google-chrome.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
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

dnf/google-chrome.repo

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[google-chrome]
2+
name=google-chrome - \$basearch
3+
baseurl=http://dl.google.com/linux/chrome/rpm/stable/\$basearch
4+
enabled=1
5+
gpgcheck=1
6+
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

0 commit comments

Comments
 (0)