blob: a39fb43c0e7a35d8752679b73b3a3ce5c2f33497 [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
10RUN 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
19RUN 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
DR695Hd4ac55d2017-02-23 11:03:08 -050025COPY / /var/opt/OpenECOMP_ETE/
DR695Hccff30b2017-02-17 18:44:24 -050026COPY lighttpd.conf /etc/lighttpd/lighttpd.conf
27RUN chmod 777 /var/opt/OpenECOMP_ETE/setup.sh
28RUN chmod 777 /var/opt/OpenECOMP_ETE/runTags.sh
29RUN chmod 777 /var/opt/OpenECOMP_ETE/dnstraffic.sh
30
31# Update the ssh library so that it will run properly in the docker env
32RUN cd /var/opt/OpenECOMP_ETE && ./setup.sh
33RUN apt-get clean
34
35CMD ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"]
36
37
38