3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
16 ########################################################################
18 FROM ubuntu:20.04 as FINAL
20 RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && \
21 DEBIAN_FRONTEND=noninteractive apt-get --yes install \
26 python3-setuptools=45.2.* \
29 RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && \
30 DEBIAN_FRONTEND=noninteractive apt-get --yes install \
35 libcurl4-openssl-dev=7.68.* \
38 ##### Different from devops/docker/tests/Dockerfile
39 RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && \
40 DEBIAN_FRONTEND=noninteractive apt-get --yes install \
41 software-properties-common apt-transport-https
43 ARG OSM_REPOSITORY="deb [arch=amd64] https://osm-download.etsi.org/repository/osm/debian/testing-daily testing IM osmclient"
44 RUN curl -q -o OSM-ETSI-Release-key.gpg "https://osm-download.etsi.org/repository/osm/debian/testing-daily/OSM%20ETSI%20Release%20Key.gpg" && \
45 APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add OSM-ETSI-Release-key.gpg && \
46 DEBIAN_FRONTEND=noninteractive add-apt-repository -y "$OSM_REPOSITORY" && \
47 DEBIAN_FRONTEND=noninteractive apt-get -y update && \
48 apt-get install python3-osm-im python3-osmclient
51 -r /usr/lib/python3/dist-packages/osm_im/requirements.txt \
52 -r /usr/lib/python3/dist-packages/osmclient/requirements.txt
54 COPY robot-systest /robot-systest
55 COPY charm.sh /usr/sbin/charm
56 COPY requirements.txt /robot-systest
59 -r /robot-systest/requirements.txt
60 ###################################################
62 ARG CACHE_DATE=not_a_date
64 https://osm.etsi.org/gitlab/vnf-onboarding/osm-packages.git \
65 --recurse-submodules \
66 /robot-systest/osm-packages
68 WORKDIR /robot-systest
70 # Folder where Robot tests are stored
71 ENV ROBOT_DEVOPS_FOLDER=/robot-systest
73 # Folder to save alternative DUT environments (optional)
74 ENV ENVIRONMENTS_FOLDER=environments
76 # Folder where all required packages are stored
77 ENV PACKAGES_FOLDER=/robot-systest/osm-packages
79 # Folder where test results should be exported
80 ENV ROBOT_REPORT_FOLDER=/robot-systest/results
83 ENV K8S_CREDENTIALS=/root/.kube/config
86 ENV OSM_RSA_FILE=/root/osm_id_rsa
91 ENTRYPOINT [ "/robot-systest/run_test.sh"]