blob: 3ec5b9cad344ca4cfde260a1c16b7167503883f8 [file] [log] [blame]
DR695Hccff30b2017-02-17 18:44:24 -05001FROM ubuntu
2## Be careful of Windows newlines
3
4MAINTAINER "OpenECOMP"
5
DR695Hd4ac55d2017-02-23 11:03:08 -05006LABEL name="Docker image for the OpenECOMP Robot Testing Framework"
DR695Hccff30b2017-02-17 18:44:24 -05007LABEL usage="docker run -e ROBOT_TEST=<testname> -ti openecompete"
8
9# Install Python Pip, Robot framework, firefox, lighttpd web server, wget
Jerry Flooda9dad142017-10-11 12:39:25 -040010# Restructuring so we can see where it fails in the build.
11RUN apt-get update
Jerry Flood27d5fe32018-03-05 09:39:32 -050012RUN apt-get --assume-yes install python2.7
Jerry Flooda9dad142017-10-11 12:39:25 -040013RUN apt-get --assume-yes install build-essential
14RUN apt-get --assume-yes install dbus
15RUN apt-get --assume-yes install dnsutils
16RUN apt-get --assume-yes install git
17RUN apt-get --assume-yes install libappindicator1
18RUN apt-get --assume-yes install libffi-dev
19RUN apt-get --assume-yes install libindicator7
20RUN apt-get --assume-yes install libssl-dev
21RUN apt-get --assume-yes install libxss1
22RUN apt-get --assume-yes install lighttpd
23RUN apt-get --assume-yes install net-tools
24RUN apt-get --assume-yes install python-dev
25RUN apt-get --assume-yes install python-pip
26RUN apt-get --assume-yes install unzip
27RUN apt-get --assume-yes install wget
28RUN apt-get --assume-yes install xvfb
29RUN pip install --upgrade pip
30RUN pip install robotframework
31RUN python --version
Jerry Flood633a15d2017-06-02 16:46:11 -040032
DR695Hccff30b2017-02-17 18:44:24 -050033# Install chrome
34RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
35 echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list && \
36 apt-get update && \
37 apt-get --assume-yes install google-chrome-stable
38
39# Copy the robot code
DR695Hd4ac55d2017-02-23 11:03:08 -050040COPY / /var/opt/OpenECOMP_ETE/
Jerry Flood633a15d2017-06-02 16:46:11 -040041COPY lighttpd.conf /etc/lighttpd/lighttpd.conf
Chuck Short41e03d22017-07-14 08:29:59 -050042RUN chmod 777 /var/opt/OpenECOMP_ETE/setup.sh && \
43 chmod 777 /var/opt/OpenECOMP_ETE/runTags.sh && \
44 chmod 777 /var/opt/OpenECOMP_ETE/dnstraffic.sh && \
45 chmod 777 /var/opt/OpenECOMP_ETE/runSoak.sh && \
46 chmod 777 /var/opt/OpenECOMP_ETE/runEteTag.sh
DR695Hccff30b2017-02-17 18:44:24 -050047
48# Update the ssh library so that it will run properly in the docker env
Chuck Short41e03d22017-07-14 08:29:59 -050049RUN cd /var/opt/OpenECOMP_ETE && ./setup.sh && apt-get clean
DR695Hccff30b2017-02-17 18:44:24 -050050
51CMD ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"]
52
53
54