blob: 7795fa77147e7d366e4081e0f3e46d3516cc3998 [file] [log] [blame]
DR695Hccff30b2017-02-17 18:44:24 -05001FROM ubuntu
2## Be careful of Windows newlines
3
Brian Freemanf6032df2019-02-18 09:59:12 -05004MAINTAINER "ONAP"
DR695Hccff30b2017-02-17 18:44:24 -05005
Brian Freemanf6032df2019-02-18 09:59:12 -05006LABEL name="Docker image for the ONAP 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
Jerry Flooda9dad142017-10-11 12:39:25 -040010# Restructuring so we can see where it fails in the build.
11RUN apt-get update
Jerry Flood27d5fe32018-03-05 09:39:32 -050012RUN apt-get --assume-yes install python2.7
Jerry Flooda9dad142017-10-11 12:39:25 -040013RUN apt-get --assume-yes install build-essential
14RUN apt-get --assume-yes install dbus
15RUN apt-get --assume-yes install dnsutils
16RUN apt-get --assume-yes install git
17RUN apt-get --assume-yes install libappindicator1
18RUN apt-get --assume-yes install libffi-dev
19RUN apt-get --assume-yes install libindicator7
20RUN apt-get --assume-yes install libssl-dev
21RUN apt-get --assume-yes install libxss1
22RUN apt-get --assume-yes install lighttpd
23RUN apt-get --assume-yes install net-tools
24RUN apt-get --assume-yes install python-dev
25RUN apt-get --assume-yes install python-pip
26RUN apt-get --assume-yes install unzip
27RUN apt-get --assume-yes install wget
28RUN apt-get --assume-yes install xvfb
Brian Freeman54497982018-09-14 17:06:15 -050029RUN apt-get --assume-yes install xxd
Jerry Flooda9dad142017-10-11 12:39:25 -040030RUN pip install --upgrade pip
Yang Xu6237ee32018-12-16 22:51:46 -050031RUN pip install robotframework==3.0.4
Jerry Flooda9dad142017-10-11 12:39:25 -040032RUN python --version
Jerry Flood633a15d2017-06-02 16:46:11 -040033
DR695Hccff30b2017-02-17 18:44:24 -050034# Install chrome
35RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
36 echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list && \
37 apt-get update && \
38 apt-get --assume-yes install google-chrome-stable
39
40# Copy the robot code
Brian Freemanf6032df2019-02-18 09:59:12 -050041COPY / /var/opt/ONAP/
Jerry Flood633a15d2017-06-02 16:46:11 -040042COPY lighttpd.conf /etc/lighttpd/lighttpd.conf
Gary Wu855a5a52018-10-25 11:23:44 -070043COPY authorization /etc/lighttpd/authorization
Brian Freemanf6032df2019-02-18 09:59:12 -050044RUN chmod 777 /var/opt/ONAP/setup.sh && \
45 chmod 777 /var/opt/ONAP/runTags.sh && \
46 chmod 777 /var/opt/ONAP/dnstraffic.sh && \
47 chmod 777 /var/opt/ONAP/runSoak.sh && \
48 chmod 777 /var/opt/ONAP/runEteTag.sh
DR695Hccff30b2017-02-17 18:44:24 -050049
Brian Freemanf9d15792018-07-26 15:50:31 -050050# Set mode for the SSH keys
Brian Freemanf6032df2019-02-18 09:59:12 -050051RUN chmod 600 /var/opt/ONAP/robot/assets/keys/*
Brian Freemanf9d15792018-07-26 15:50:31 -050052
DR695Hccff30b2017-02-17 18:44:24 -050053# Update the ssh library so that it will run properly in the docker env
Brian Freemanf6032df2019-02-18 09:59:12 -050054RUN cd /var/opt/ONAP && ./setup.sh && apt-get clean
DR695Hccff30b2017-02-17 18:44:24 -050055
56CMD ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"]
57
58
59