Image containing robot framework, chrome, firefox and useful robot libraries
380
FROM fedora:21
ENV WORKDIR /home
WORKDIR ${WORKDIR}
RUN yum update -y
RUN yum install -y wget
sudo
tar
bzip2
python-pip
ssh*
openssh-server
openssl-devel
unzip
numpy
opencv*
tesseract
python-devel
libffi-devel
gcc \
xorg-x11-server-Xvfb
ratpoison
xset
firefox
yum clean all
RUN wget http://chromedriver.storage.googleapis.com/2.21/chromedriver_linux64.zip RUN unzip chromedriver_linux64.zip -d /usr/bin/ RUN rm chromedriver_linux64.zip
RUN pip install --upgrade virtualenv RUN pip install robotframework robotframework-selenium2library robotframework-sshlibrary robotframework-appiumlibrary robotframework-faker
RUN pip install -U selenium
RUN wget http://ftp.cixug.es/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz RUN tar xvf apache-maven-3.3.9-bin.tar.gz -C /usr/local/ RUN rm apache-maven-3.3.9-bin.tar.gz
RUN wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u92-b14/jdk-8u92-linux-x64.rpm RUN rpm -i jdk-8u92-linux-x64.rpm RUN rm jdk-8u92-linux-x64.rpm
COPY ./docker-resources/ ${WORKDIR}
RUN /usr/local/apache-maven-3.3.9/bin/mvn clean package RUN python setup.py install
RUN mv ${WORKDIR}/google-chrome.repo /etc/yum.repos.d/ RUN yum install -y google-chrome-stable RUN rm -rf assembly.xml build lib pom.xml setup.py src target RUN mkdir robot RUN chmod 755 execute.sh
The first thing you need to do is building the image and then run a container based on that image
| Command | Description |
|---|---|
sudo docker build -t ${robot-image-name} . | Build a new robot image |
sudo docker run --net host --rm -v ${workspace}:/home/robot -i -t ${robot-image} ./execute.sh ${server} ${path-to-test} ${included-tag-test} ${excluded-tag-test} ${browser} ${browser-2} | Execute functional test according to the following parameters: ${include-tag-test} execute test with this tag, ${excluded-tag-test} exclude test with this tag, ${server} is the main URL, ${browser} is the browser used to execute the test (chrome or firefox), ${browser-2} is the 2nd browser used during the test and ${path-to-test} is the path to one specific test or suite to be executed |
Content type
Image
Digest
Size
2.3 GB
Last updated
about 10 years ago
docker pull cristopherdcb/robotframework