blob: d0f32e7dac9be1d3c32a7f74fea2fe7f3531352a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
FROM ubuntu:18.04
## Be careful of Windows newlines
MAINTAINER "ONAP"
LABEL name="Docker image for the ONAP Robot Testing Framework"
LABEL usage="docker run -e ROBOT_TEST=<testname> -ti onapete"
ENV BUILDTIME=true
ARG TESTSUITE_TAG=master
ARG HEATBRIDGE_TAG=master
ARG PYTHON_UTILS_TAG=master
ARG DEMO_TAG=master
ARG TESTSUITE_REPO=git.onap.org/testsuite
ARG HEATBRIDGE_REPO=git.onap.org/testsuite/heatbridge.git
ARG PYTHON_UTILS_REPO=git.onap.org/testsuite/python-testing-utils.git
ARG DEMO_REPO=git.onap.org/demo
COPY requirements.txt requirements.txt
# Install Python, Pip, Robot framework, chromium, lighttpd web server
RUN apt-get update \
&& apt-get install \
--no-install-recommends \
--assume-yes \
chromium-browser \
chromium-chromedriver \
dnsutils \
git \
gcc \
libffi-dev \
libssl-dev \
lighttpd \
make \
net-tools \
python2.7 python-dev python-setuptools python-wheel python-pip \
netbase \
unzip zip \
x11-utils x11-xserver-utils \
xvfb \
xxd \
wget vim \
python3.7 python3.7-dev python3-pip && \
mkdir -p /var/opt/ONAP && \
pip install -r requirements.txt && \
pip install --no-cache-dir \
git+https://$HEATBRIDGE_REPO@$HEATBRIDGE_TAG#egg=heatbridge\&subdirectory=heatbridge \
git+https://$PYTHON_UTILS_REPO@$PYTHON_UTILS_TAG#egg=robotframework-onap\&subdirectory=robotframework-onap && \
git clone --depth 1 https://$TESTSUITE_REPO -b $TESTSUITE_TAG /var/opt/ONAP && \
git clone --depth 1 https://$DEMO_REPO -b $DEMO_TAG /var/opt/ONAP/demo
RUN python3.7 -m pip install setuptools wheel
RUN python3.7 -m pip install virtualenv
# Copy the robot code
RUN mkdir -p /etc/lighttpd && \
rm /etc/lighttpd/lighttpd.conf && \
ln -s /var/opt/ONAP/docker/lighttpd.conf /etc/lighttpd/lighttpd.conf && \
ln -s /var/opt/ONAP/docker/authorization /etc/lighttpd/authorization && \
chmod 777 /var/opt/ONAP/setup.sh \
&& chmod 777 /var/opt/ONAP/runTags.sh \
&& chmod 777 /var/opt/ONAP/dnstraffic.sh \
&& chmod 777 /var/opt/ONAP/runSoak.sh \
&& chmod 777 /var/opt/ONAP/runEteTag.sh \
&& chmod 600 /var/opt/ONAP/robot/assets/keys/* && \
cd /var/opt/ONAP && ./setup.sh \
&& apt-get autoremove --assume-yes \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean
CMD ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"]
|