DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 1 | FROM ubuntu |
| 2 | ## Be careful of Windows newlines |
| 3 | |
Brian Freeman | f6032df | 2019-02-18 09:59:12 -0500 | [diff] [blame] | 4 | MAINTAINER "ONAP" |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 5 | |
Brian Freeman | f6032df | 2019-02-18 09:59:12 -0500 | [diff] [blame] | 6 | LABEL name="Docker image for the ONAP Robot Testing Framework" |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 7 | LABEL usage="docker run -e ROBOT_TEST=<testname> -ti openecompete" |
| 8 | |
Puzikov Dmitry | 38bcba6 | 2019-02-15 16:58:35 +0100 | [diff] [blame^] | 9 | ENV BUILDTIME=true |
Jerry Flood | 633a15d | 2017-06-02 16:46:11 -0400 | [diff] [blame] | 10 | |
Puzikov Dmitry | 38bcba6 | 2019-02-15 16:58:35 +0100 | [diff] [blame^] | 11 | # Install Python, Pip, Robot framework, chromium, lighttpd web server |
| 12 | RUN 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 | |
| 38 | RUN pip install robotframework==3.0.4 \ |
| 39 | && python --version |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 40 | |
| 41 | # Copy the robot code |
Puzikov Dmitry | 38bcba6 | 2019-02-15 16:58:35 +0100 | [diff] [blame^] | 42 | COPY . /var/opt/ONAP/ |
Jerry Flood | 633a15d | 2017-06-02 16:46:11 -0400 | [diff] [blame] | 43 | COPY lighttpd.conf /etc/lighttpd/lighttpd.conf |
Gary Wu | 855a5a5 | 2018-10-25 11:23:44 -0700 | [diff] [blame] | 44 | COPY authorization /etc/lighttpd/authorization |
Puzikov Dmitry | 38bcba6 | 2019-02-15 16:58:35 +0100 | [diff] [blame^] | 45 | RUN 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/* |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 51 | |
Puzikov Dmitry | 38bcba6 | 2019-02-15 16:58:35 +0100 | [diff] [blame^] | 52 | RUN cd /var/opt/ONAP \ |
| 53 | && ./setup.sh \ |
| 54 | && apt-get autoremove --assume-yes \ |
| 55 | && rm -rf /var/lib/apt/lists/* \ |
| 56 | && apt-get clean |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 57 | |
| 58 | CMD ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"] |
| 59 | |
| 60 | |
| 61 | |