blob: d993e94dd368ea3dc3155d25751a51ce3899387f [file] [log] [blame]
DR695Hccff30b2017-02-17 18:44:24 -05001FROM ubuntu
2## Be careful of Windows newlines
3
4MAINTAINER "OpenECOMP"
5
6LABEL name="Docker image for the OpenECOMP End-to-End Robot Framework"
7LABEL 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
25COPY OpenECOMP_ETE/ /var/opt/OpenECOMP_ETE/
26COPY 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