blob: 2ae03c9de30edb3932e908fbe4053f88dba77179 [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 \
22 make python3 debhelper python3-setuptools python3-pip apt-utils ssh iputils-ping libcurl4-openssl-dev libssl-dev \
23 python3-openstackclient
24
25RUN add-apt-repository -y ppa:rmescandon/yq && apt update && apt install yq -y
26
27RUN python3 -m pip install haikunator requests robotframework robotframework-seleniumlibrary robotframework-requests robotframework-jsonlibrary \
28 robotframework-sshlibrary charm-tools git+https://osm.etsi.org/gerrit/osm/IM.git git+https://osm.etsi.org/gerrit/osm/osmclient.git
29
30# Preparing working environment
31WORKDIR /robot-systest
32RUN git clone https://osm.etsi.org/gitlab/vnf-onboarding/osm-packages.git --recurse-submodules /robot-systest/osm-packages
33
34# Copy robot folder and charm.sh
35COPY robot-systest /robot-systest
36COPY charm.sh /usr/sbin/charm
37
38# Folder where Robot tests are stored
39ENV ROBOT_DEVOPS_FOLDER=/robot-systest
40
41# Folder to save alternative DUT environments (optional)
42ENV ENVIRONMENTS_FOLDER=environments
43
44# Folder where all required packages are stored
45ENV PACKAGES_FOLDER=/robot-systest/osm-packages
46
47# Folder where test results should be exported
48ENV ROBOT_REPORT_FOLDER=/robot-systest/results
49
50# Kubeconfig file
51ENV K8S_CREDENTIALS=/root/.kube/config
52
53ENV LC_ALL=C.UTF-8
54ENV LANG=C.UTF-8
55
56ENTRYPOINT [ "/robot-systest/run_test.sh"]