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