blob: 51f4c53be911def516db9f914a480b78eab45cd6 [file] [log] [blame]
almagia83721f32020-06-18 12:21:45 +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
16FROM ubuntu:18.04
17
Felipe Vicensf96bb452020-06-22 08:12:30 +020018RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install git software-properties-common \
19 make python3 debhelper python3-setuptools python3-pip apt-utils ssh iputils-ping libcurl4-openssl-dev libssl-dev \
20 python3-openstackclient
21RUN add-apt-repository -y ppa:rmescandon/yq && apt update && apt install yq -y
22RUN python3 -m pip install haikunator requests robotframework robotframework-seleniumlibrary robotframework-requests robotframework-jsonlibrary \
23 robotframework-sshlibrary charm-tools git+https://osm.etsi.org/gerrit/osm/IM.git git+https://osm.etsi.org/gerrit/osm/osmclient.git
24WORKDIR /robot-systest
25RUN git clone https://osm.etsi.org/gitlab/vnf-onboarding/osm-packages.git --recurse-submodules /robot-systest/osm-packages
26COPY robot-systest /robot-systest
27COPY charm.sh /usr/sbin/charm
28
29# Folder where Robot tests are stored
30ENV ROBOT_DEVOPS_FOLDER=/robot-systest
31
32# Folder to save alternative DUT environments (optional)
33ENV ENVIRONMENTS_FOLDER=environments
34
35# Folder where all required packages are stored
36ENV PACKAGES_FOLDER=/robot-systest/osm-packages
37
38# Folder where test results should be exported
39ENV ROBOT_REPORT_FOLDER=/robot-systest/results
40
Felipe Vicens5c54d272020-06-23 15:55:08 +020041# Kubeconfig file
42ENV K8S_CREDENTIALS=/root/.kube/config
43
Felipe Vicensf96bb452020-06-22 08:12:30 +020044ENV LC_ALL=C.UTF-8
45ENV LANG=C.UTF-8
46
47ENTRYPOINT [ "/robot-systest/run_test.sh"]