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 |
| 10 | RUN apt-get update && \ |
| 11 | apt-get --assume-yes install python=2.7.11-1 && \ |
| 12 | apt-get --assume-yes install python-pip dbus xvfb lighttpd wget git net-tools dnsutils unzip && \ |
| 13 | apt-get --assume-yes install libxss1 libappindicator1 libindicator7 build-essential libssl-dev libffi-dev python-dev && \ |
| 14 | pip install --upgrade pip && \ |
| 15 | pip install robotframework && \ |
| 16 | python --version |
| 17 | |
| 18 | # Install chrome |
| 19 | RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \ |
| 20 | echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list && \ |
| 21 | apt-get update && \ |
| 22 | apt-get --assume-yes install google-chrome-stable |
| 23 | |
| 24 | # Copy the robot code |
DR695H | d4ac55d | 2017-02-23 11:03:08 -0500 | [diff] [blame] | 25 | COPY / /var/opt/OpenECOMP_ETE/ |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 26 | COPY lighttpd.conf /etc/lighttpd/lighttpd.conf |
| 27 | RUN chmod 777 /var/opt/OpenECOMP_ETE/setup.sh |
| 28 | RUN chmod 777 /var/opt/OpenECOMP_ETE/runTags.sh |
| 29 | RUN chmod 777 /var/opt/OpenECOMP_ETE/dnstraffic.sh |
| 30 | |
| 31 | # Update the ssh library so that it will run properly in the docker env |
| 32 | RUN cd /var/opt/OpenECOMP_ETE && ./setup.sh |
| 33 | RUN apt-get clean |
| 34 | |
| 35 | CMD ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"] |
| 36 | |
| 37 | |
| 38 | |