blob: c88818ddf49e2dca2f0205d5fe47c31ad9e7a718 [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
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 \
31 unzip \
32 x11-utils \
33 x11-xserver-utils \
34 xvfb \
35 xxd
36
37
38RUN pip install robotframework==3.0.4 \
39 && python --version
DR695Hccff30b2017-02-17 18:44:24 -050040
41# Copy the robot code
Puzikov Dmitry38bcba62019-02-15 16:58:35 +010042COPY . /var/opt/ONAP/
Jerry Flood633a15d2017-06-02 16:46:11 -040043COPY lighttpd.conf /etc/lighttpd/lighttpd.conf
Gary Wu855a5a52018-10-25 11:23:44 -070044COPY authorization /etc/lighttpd/authorization
Puzikov Dmitry38bcba62019-02-15 16:58:35 +010045RUN chmod 777 /var/opt/ONAP/setup.sh \
46 && chmod 777 /var/opt/ONAP/runTags.sh \
47 && chmod 777 /var/opt/ONAP/dnstraffic.sh \
48 && chmod 777 /var/opt/ONAP/runSoak.sh \
49 && chmod 777 /var/opt/ONAP/runEteTag.sh \
50 && chmod 600 /var/opt/ONAP/robot/assets/keys/*
DR695Hccff30b2017-02-17 18:44:24 -050051
Puzikov Dmitry38bcba62019-02-15 16:58:35 +010052RUN cd /var/opt/ONAP \
53 && ./setup.sh \
54 && apt-get autoremove --assume-yes \
55 && rm -rf /var/lib/apt/lists/* \
56 && apt-get clean
DR695Hccff30b2017-02-17 18:44:24 -050057
58CMD ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"]
59
60
61