aboutsummaryrefslogtreecommitdiffstats
path: root/cmso-robot/docker/Dockerfile
diff options
context:
space:
mode:
authorJerry Flood <jflood@att.com>2019-02-25 15:02:53 -0500
committerJerry Flood <jflood@att.com>2019-02-25 15:03:20 -0500
commitc98ae2d0bd8ef115e5302d421a751b6f5c3d838d (patch)
tree115d138feb840bf03e1732cc63dfd97ac2523a63 /cmso-robot/docker/Dockerfile
parentf168a37fc269e58e77ad10969960ef84446a47ee (diff)
Add build of robot container
Issue-ID: OPTFRA-393 Change-Id: Ifa0ea6100f997793ccafe2164318bc802d75700a Signed-off-by: Jerry Flood <jflood@att.com>
Diffstat (limited to 'cmso-robot/docker/Dockerfile')
-rw-r--r--cmso-robot/docker/Dockerfile85
1 files changed, 36 insertions, 49 deletions
diff --git a/cmso-robot/docker/Dockerfile b/cmso-robot/docker/Dockerfile
index 3e0a917..4fd80d0 100644
--- a/cmso-robot/docker/Dockerfile
+++ b/cmso-robot/docker/Dockerfile
@@ -1,52 +1,39 @@
-FROM dockercentral.it.att.com:5300/library/ubuntu:16.04
-## Be careful of Windows newlines
-
-MAINTAINER "Scheduler"
-
-LABEL name="Docker image for the Scheduler Robot Testing Framework"
-LABEL usage="docker run -e <testname> scheduler_robot
-
-# Install Python Pip, Robot framework, firefox, lighttpd web server, wget
-RUN apt-get update
-RUN apt-get --assume-yes upgrade
-RUN apt-get --assume-yes install python2.7
-RUN apt-get --assume-yes install build-essential
-RUN apt-get --assume-yes install dbus
-RUN apt-get --assume-yes install dnsutils
-RUN apt-get --assume-yes install git
-RUN apt-get --assume-yes install libappindicator1
-RUN apt-get --assume-yes install libffi-dev
-RUN apt-get --assume-yes install libindicator7
-RUN apt-get --assume-yes install libssl-dev
-RUN apt-get --assume-yes install libxss1
-RUN apt-get --assume-yes install lighttpd
-RUN apt-get --assume-yes install net-tools
-RUN apt-get --assume-yes install python-dev
-RUN apt-get --assume-yes install python-pip
-RUN apt-get --assume-yes install unzip
-RUN apt-get --assume-yes install wget
-RUN apt-get --assume-yes install xvfb
-RUN pip install --upgrade pip
-RUN pip install robotframework
-RUN python --version
-
-# Install chrome
-RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
- echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list && \
- apt-get update && \
- apt-get --assume-yes install google-chrome-stable
-
-# Copy the robot code
-
-COPY / /opt/app/scheduler_robot/
-COPY docker/lighttpd.conf /etc/lighttpd/lighttpd.conf
-RUN ls -ltr /opt/app/scheduler_robot
-RUN chmod 777 /opt/app/scheduler_robot/setup.sh
-
-# Update the ssh library so that it will run properly in the docker env
-RUN cd /opt/app/scheduler_robot/ && ./setup.sh && apt-get clean
-
-###CMD ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"]
+FROM ppodgorsek/robot-framework:latest
+MAINTAINER "CMSO"
+
+LABEL name="Docker image for the CMSO Robot Testing Framework"
+LABEL usage="docker run -e <testname> optf-cmso-robot"
+
+COPY /onap-cmso/robot /opt/cmso-robot/robot
+
+COPY /onap-cmso/ete.sh /opt/cmso-robot
+RUN chmod 777 /opt/cmso-robot/ete.sh
+
+COPY /onap-cmso/server.py /opt/cmso-robot
+RUN pip install Flask
+RUN pip install 'PyYAML==3.12'
+RUN pip install 'selenium'
+RUN pip install 'requests'
+RUN pip install 'robotframework-selenium2library'
+RUN pip install 'robotframework-databaselibrary'
+RUN pip install 'robotframework-extendedselenium2library'
+RUN pip install 'robotframework-requests'
+RUN pip install 'robotframework-sshlibrary'
+RUN pip install 'robotframework-sudslibrary'
+RUN pip install 'robotframework-ftplibrary'
+RUN pip install 'robotframework-rammbock'
+RUN pip install 'deepdiff'
+RUN pip install 'dnspython'
+RUN pip install 'robotframework-httplibrary'
+RUN pip install 'robotframework-archivelibrary'
+
+
+
+###Just to keep it running
+CMD ["/usr/bin/python", "/opt/cmso-robot/server.py"]
+
+### Use --entrypoint to override to run the tests test and exit
+### --entrypoint /opt/cmso-robot/ete.sh