DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 1 | FROM ubuntu |
| 2 | ## Be careful of Windows newlines |
| 3 | |
| 4 | MAINTAINER "OpenECOMP" |
| 5 | |
DR695H | d4ac55d | 2017-02-23 11:03:08 -0500 | [diff] [blame] | 6 | LABEL name="Docker image for the OpenECOMP Robot Testing Framework" |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 7 | LABEL usage="docker run -e ROBOT_TEST=<testname> -ti openecompete" |
| 8 | |
| 9 | # Install Python Pip, Robot framework, firefox, lighttpd web server, wget |
Jerry Flood | a9dad14 | 2017-10-11 12:39:25 -0400 | [diff] [blame] | 10 | # Restructuring so we can see where it fails in the build. |
| 11 | RUN apt-get update |
Jerry Flood | 27d5fe3 | 2018-03-05 09:39:32 -0500 | [diff] [blame] | 12 | RUN apt-get --assume-yes install python2.7 |
Jerry Flood | a9dad14 | 2017-10-11 12:39:25 -0400 | [diff] [blame] | 13 | RUN apt-get --assume-yes install build-essential |
| 14 | RUN apt-get --assume-yes install dbus |
| 15 | RUN apt-get --assume-yes install dnsutils |
| 16 | RUN apt-get --assume-yes install git |
| 17 | RUN apt-get --assume-yes install libappindicator1 |
| 18 | RUN apt-get --assume-yes install libffi-dev |
| 19 | RUN apt-get --assume-yes install libindicator7 |
| 20 | RUN apt-get --assume-yes install libssl-dev |
| 21 | RUN apt-get --assume-yes install libxss1 |
| 22 | RUN apt-get --assume-yes install lighttpd |
| 23 | RUN apt-get --assume-yes install net-tools |
| 24 | RUN apt-get --assume-yes install python-dev |
| 25 | RUN apt-get --assume-yes install python-pip |
| 26 | RUN apt-get --assume-yes install unzip |
| 27 | RUN apt-get --assume-yes install wget |
| 28 | RUN apt-get --assume-yes install xvfb |
| 29 | RUN pip install --upgrade pip |
| 30 | RUN pip install robotframework |
| 31 | RUN python --version |
Jerry Flood | 633a15d | 2017-06-02 16:46:11 -0400 | [diff] [blame] | 32 | |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 33 | # Install chrome |
| 34 | RUN 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 |
DR695H | d4ac55d | 2017-02-23 11:03:08 -0500 | [diff] [blame] | 40 | COPY / /var/opt/OpenECOMP_ETE/ |
Jerry Flood | 633a15d | 2017-06-02 16:46:11 -0400 | [diff] [blame] | 41 | COPY lighttpd.conf /etc/lighttpd/lighttpd.conf |
Chuck Short | 41e03d2 | 2017-07-14 08:29:59 -0500 | [diff] [blame] | 42 | RUN 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 |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 47 | |
| 48 | # Update the ssh library so that it will run properly in the docker env |
Chuck Short | 41e03d2 | 2017-07-14 08:29:59 -0500 | [diff] [blame] | 49 | RUN cd /var/opt/OpenECOMP_ETE && ./setup.sh && apt-get clean |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 50 | |
| 51 | CMD ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"] |
| 52 | |
| 53 | |
| 54 | |