blob: 871e84925c8af672c72b7bc84c989596cc8de300 [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 && \
Chuck Short41e03d22017-07-14 08:29:59 -050012 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 && \
DR695Hccff30b2017-02-17 18:44:24 -050016 pip install --upgrade pip && \
Chuck Short41e03d22017-07-14 08:29:59 -050017 pip install robotframework && \
DR695Hccff30b2017-02-17 18:44:24 -050018 python --version
Jerry Flood633a15d2017-06-02 16:46:11 -040019
DR695Hccff30b2017-02-17 18:44:24 -050020# Install chrome
21RUN 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
DR695Hd4ac55d2017-02-23 11:03:08 -050027COPY / /var/opt/OpenECOMP_ETE/
Jerry Flood633a15d2017-06-02 16:46:11 -040028COPY lighttpd.conf /etc/lighttpd/lighttpd.conf
Chuck Short41e03d22017-07-14 08:29:59 -050029RUN 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
DR695Hccff30b2017-02-17 18:44:24 -050034
35# Update the ssh library so that it will run properly in the docker env
Chuck Short41e03d22017-07-14 08:29:59 -050036RUN cd /var/opt/OpenECOMP_ETE && ./setup.sh && apt-get clean
DR695Hccff30b2017-02-17 18:44:24 -050037
38CMD ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"]
39
40
41