blob: 0431642c3aa4bfd306fb74cbfc1cf3c194b10b41 [file] [log] [blame]
Felipe Vicens4cc047e2020-06-24 15:55:57 +02001# Copyright 2020 ETSI
2#
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
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
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
12# implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16# Author: Felipe Vicens (felipe.vicens@atos.net) ATOS
17
18FROM ubuntu:18.04
19
20# Installing robot dependencies
21RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install git software-properties-common \
sousaeduf36b4bc2021-03-23 16:25:18 +010022 make python3 debhelper python3-pip apt-utils ssh iputils-ping libcurl4-openssl-dev libssl-dev cargo rustc
Felipe Vicens4cc047e2020-06-24 15:55:57 +020023
24RUN add-apt-repository -y ppa:rmescandon/yq && apt update && apt install yq -y
25
sousaeduf36b4bc2021-03-23 16:25:18 +010026RUN python3 -m pip install -U pip
27
28RUN python3 -m pip install charm-tools haikunator python-openstackclient requests robotframework \
29 robotframework-seleniumlibrary robotframework-requests robotframework-jsonlibrary robotframework-sshlibrary \
30 setuptools setuptools-rust git+https://osm.etsi.org/gerrit/osm/IM.git \
31 git+https://osm.etsi.org/gerrit/osm/osmclient.git
Felipe Vicens4cc047e2020-06-24 15:55:57 +020032
33# Preparing working environment
34WORKDIR /robot-systest
garciaaled2532d32020-11-19 21:05:13 +000035RUN git clone --branch sol006 https://osm.etsi.org/gitlab/vnf-onboarding/osm-packages.git --recurse-submodules /robot-systest/osm-packages
Felipe Vicens4cc047e2020-06-24 15:55:57 +020036
37# Copy robot folder and charm.sh
38COPY robot-systest /robot-systest
39COPY charm.sh /usr/sbin/charm
40
Frank Brydene570b102020-09-07 08:45:54 +000041# Copy conformance tests data
42COPY conformance-tests /robot-systest/conformance-tests
43
Felipe Vicens4cc047e2020-06-24 15:55:57 +020044# Folder where Robot tests are stored
45ENV ROBOT_DEVOPS_FOLDER=/robot-systest
46
47# Folder to save alternative DUT environments (optional)
48ENV ENVIRONMENTS_FOLDER=environments
49
50# Folder where all required packages are stored
51ENV PACKAGES_FOLDER=/robot-systest/osm-packages
52
53# Folder where test results should be exported
Felipe Vicens6366c682020-06-25 20:12:16 +020054ENV ROBOT_REPORT_FOLDER=/robot-systest/reports
Felipe Vicens4cc047e2020-06-24 15:55:57 +020055
56# Kubeconfig file
57ENV K8S_CREDENTIALS=/root/.kube/config
58
59ENV LC_ALL=C.UTF-8
60ENV LANG=C.UTF-8
61
62ENTRYPOINT [ "/robot-systest/run_test.sh"]