summaryrefslogtreecommitdiffstats
path: root/cmso-robot/docker
diff options
context:
space:
mode:
authorRamaPrasad Amaranarayana (ra5425) <ra5425@att.com>2018-09-19 17:40:40 -0400
committerRamaPrasad Amaranarayana (ra5425) <ra5425@att.com>2018-09-19 17:40:40 -0400
commitfbe4bb98345727d190cefcfb3ec54ad9075fba9d (patch)
treef2e0c091a4c132c89dafb061c81eeebfb0e9a773 /cmso-robot/docker
parentb031d50f82f8ca5b7fd0609a92c719f43a9f518d (diff)
Change Management Schedule Optimization
Adding Robot Test Scripts for Change Management Schedule Optimization Change-Id: Id5edf9d3fb3c2390791362692c8b25f7607045c6 Issue-ID: OPTFRA-352 Signed-off-by: RamaPrasad Amaranarayana (ra5425) <ra5425@att.com>
Diffstat (limited to 'cmso-robot/docker')
-rw-r--r--cmso-robot/docker/Dockerfile52
-rw-r--r--cmso-robot/docker/lighttpd.conf27
2 files changed, 79 insertions, 0 deletions
diff --git a/cmso-robot/docker/Dockerfile b/cmso-robot/docker/Dockerfile
new file mode 100644
index 0000000..3e0a917
--- /dev/null
+++ b/cmso-robot/docker/Dockerfile
@@ -0,0 +1,52 @@
+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"]
+
+
+
diff --git a/cmso-robot/docker/lighttpd.conf b/cmso-robot/docker/lighttpd.conf
new file mode 100644
index 0000000..5cd4d9a
--- /dev/null
+++ b/cmso-robot/docker/lighttpd.conf
@@ -0,0 +1,27 @@
+server.document-root = "/opt/app/testsuite/html/"
+
+server.port = 88
+
+server.username = "www-data"
+server.groupname = "www-data"
+
+dir-listing.activate = "disable"
+
+mimetype.assign = (
+ ".html" => "text/html"
+)
+
+static-file.exclude-extensions = ( ".fcgi", ".php", ".rb", "~", ".inc", ".cgi" )
+index-file.names = ( "index.html" )
+
+server.modules += ( "mod_auth" )
+auth.debug = 2
+auth.backend = "plain"
+auth.backend.plain.userfile = "/etc/lighttpd/authorization"
+auth.require = ( "/" =>
+(
+"method" => "basic",
+"realm" => "Password protected area",
+"require" => "valid-user"
+)
+)