3 # Copyright 2019 AT&T Intellectual Property
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
20 ## Be careful of Windows newlines
24 LABEL name="Docker image for the RIC Robot Testing Framework"
25 LABEL usage="docker run -e ROBOT_TEST=<testname> -ti ric-robot"
28 ENV TZ=America/New_York
29 RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
33 # Install Python, Pip, Robot framework, chromium, lighttpd web server
35 # temporarily removed chromium-browser and chromium-chromedriver as
36 # they've moved to snaps and we don't have snapd support in this container
37 # yet. This will break robot tests that depend on the browser, but we don't
38 # have those in the RIC at this point anyway.
42 --no-install-recommends \
66 RUN pip3 install robotframework==3.0.4 \
71 COPY robot /var/opt/RIC/robot
72 COPY docker/ric-robot/red.xml /var/opt/RIC
73 COPY ric-python-utils /var/opt/RIC/ric-python-utils
74 COPY docker/ric-robot/runTags.sh /var/opt/RIC
75 COPY docker/ric-robot/setup.sh /var/opt/RIC
76 COPY docker/ric-robot/version.properties /var/opt/RIC
77 COPY docker/ric-robot/README.md /var/opt/RIC
78 COPY docker/ric-robot/lighttpd.conf /etc/lighttpd/lighttpd.conf
79 COPY docker/ric-robot/authorization /etc/lighttpd/authorization
81 RUN chmod 777 /var/opt/RIC/setup.sh \
82 && chmod 777 /var/opt/RIC/runTags.sh \
83 && chmod 600 /var/opt/RIC/robot/assets/keys/*
87 && apt-get autoremove --assume-yes \
88 && rm -rf /var/lib/apt/lists/* \
93 CMD ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"]