blob: 24c6389284257c93fd2ce87ee3018d18e225bfee [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"
DR695Hc0cf6a42019-07-26 16:42:36 -04007LABEL usage="docker run -e ROBOT_TEST=<testname> -ti onapete"
DR695Hccff30b2017-02-17 18:44:24 -05008
Puzikov Dmitry38bcba62019-02-15 16:58:35 +01009ENV BUILDTIME=true
Jerry Flood633a15d2017-06-02 16:46:11 -040010
Puzikov Dmitry38bcba62019-02-15 16:58:35 +010011# Install Python, Pip, Robot framework, chromium, lighttpd web server
12RUN apt-get update \
13 && apt-get install \
14 --no-install-recommends \
15 --assume-yes \
16 chromium-browser \
17 chromium-chromedriver \
18 dnsutils \
19 git \
20 gcc \
21 libffi-dev \
22 libssl-dev \
23 lighttpd \
24 make \
25 net-tools \
26 python2.7 \
27 python-dev \
28 python-setuptools \
29 python-wheel \
30 python-pip \
stark, stevenea4af0c2019-08-28 16:11:53 -070031 netbase \
Puzikov Dmitry38bcba62019-02-15 16:58:35 +010032 unzip \
33 x11-utils \
34 x11-xserver-utils \
35 xvfb \
Brian Freeman01d503a2019-04-10 14:51:59 -050036 xxd \
37 vim
stark, stevenea4af0c2019-08-28 16:11:53 -070038
39# install python 3 after so it isn't default python version
40RUN apt-get install \
41 --no-install-recommends \
42 --assume-yes \
43 python3.7 \
44 python3.7-dev \
45 python3-pip
Puzikov Dmitry38bcba62019-02-15 16:58:35 +010046
DR695H59b54c82019-06-03 18:44:17 -040047RUN pip install robotframework==3.1.2 \
Puzikov Dmitry38bcba62019-02-15 16:58:35 +010048 && python --version
DR695Hccff30b2017-02-17 18:44:24 -050049
stark, steven4c4872c2020-03-05 13:28:51 -080050RUN python3.7 -m pip install setuptools wheel
stark, stevenea4af0c2019-08-28 16:11:53 -070051RUN python3.7 -m pip install virtualenv
52
DR695Hccff30b2017-02-17 18:44:24 -050053# Copy the robot code
Puzikov Dmitry38bcba62019-02-15 16:58:35 +010054COPY . /var/opt/ONAP/
Jerry Flood633a15d2017-06-02 16:46:11 -040055COPY lighttpd.conf /etc/lighttpd/lighttpd.conf
Gary Wu855a5a52018-10-25 11:23:44 -070056COPY authorization /etc/lighttpd/authorization
Puzikov Dmitry38bcba62019-02-15 16:58:35 +010057RUN chmod 777 /var/opt/ONAP/setup.sh \
58 && chmod 777 /var/opt/ONAP/runTags.sh \
59 && chmod 777 /var/opt/ONAP/dnstraffic.sh \
60 && chmod 777 /var/opt/ONAP/runSoak.sh \
61 && chmod 777 /var/opt/ONAP/runEteTag.sh \
62 && chmod 600 /var/opt/ONAP/robot/assets/keys/*
DR695Hccff30b2017-02-17 18:44:24 -050063
Puzikov Dmitry38bcba62019-02-15 16:58:35 +010064RUN cd /var/opt/ONAP \
65 && ./setup.sh \
66 && apt-get autoremove --assume-yes \
67 && rm -rf /var/lib/apt/lists/* \
68 && apt-get clean
DR695Hccff30b2017-02-17 18:44:24 -050069
70CMD ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"]
71
72
73