Skip to content

Commit 4059589

Browse files
committed
Initial version using Robot Framework 3.0.
1 parent 8993832 commit 4059589

File tree

4 files changed

+64
-2
lines changed

4 files changed

+64
-2
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.settings/
2+
3+
*~
4+
.project

Dockerfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM fedora:24
2+
3+
MAINTAINER Paul Podgorsek <[email protected]>
4+
LABEL description Robot Framework in Docker.
5+
6+
VOLUME /opt/robotframework/reports
7+
VOLUME /opt/robotframework/tests
8+
9+
RUN dnf upgrade -y\
10+
&& dnf install -y firefox-49.0-2.fc24\
11+
java-1.8.0-openjdk\
12+
python-devel\
13+
python-setuptools\
14+
wxPython\
15+
xorg-x11-server-Xvfb\
16+
&& dnf clean all
17+
18+
RUN easy_install pip
19+
RUN pip install --upgrade pip
20+
RUN pip install robotframework==3.0
21+
RUN pip install robotframework-selenium2library==1.8.0
22+
RUN pip install robotframework-databaselibrary==0.8.1
23+
24+
COPY bin/firefox.sh /opt/robotframework/bin/firefox
25+
26+
ENV PATH=/opt/robotframework/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
27+
28+
ENTRYPOINT ["robot", "--outputDir", "/opt/robotframework/reports", "/opt/robotframework/tests"]

README.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,28 @@
1-
# docker-robot-framework
2-
Robot Framework in Docker
1+
# Robot Framework in Docker
2+
3+
## What is it?
4+
5+
This project consists of a Docker image containing a Robot Framework installation.
6+
7+
This installation also contains the Selenium and database libraries for Robot Framework. The test cases and reports should be mounted as volumes.
8+
9+
## Versioning
10+
11+
The versioning of this image follows the one of Robot Framework:
12+
13+
* Major and minor versions match the ones of Robot Framework
14+
* Patch version is specific to this project (allows to update the versions of the other dependencies)
15+
16+
The versions used in the latest version are:
17+
18+
* Robot Framework 3.0
19+
* Robot Framework selenium2library 1.8.0
20+
* Robot Framework databaselibrary 0.8.1
21+
* Firefox 49.0
22+
* Java 8 (OpenJDK)
23+
24+
## Running the container
25+
26+
This container can be run using the following command:
27+
28+
docker run -v <local path to the reports' folder>:/opt/robotframework/reports:Z -v <local path to the test suites' folder>:/opt/robotframework/tests:Z ppodgorsek/robotframework:<version>

bin/firefox.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 Firefox in a virtual X server, as there is no graphical interface.
4+
xvfb-run /usr/bin/firefox

0 commit comments

Comments
 (0)