blob: 5614f1a70ac259258e99f96913777df78664a530 [file] [log] [blame]
Yang Xu21b09c92019-06-13 13:19:20 -04001#!/bin/bash
Bartek Grzybowski79bd9e72019-09-30 15:01:16 +02002
3# COPYRIGHT NOTICE STARTS HERE
4#
5# Copyright 2019 Samsung Electronics Co., Ltd.
Yang Xu21b09c92019-06-13 13:19:20 -04006#
7# Licensed under the Apache License, Version 2.0 (the "License");
8# you may not use this file except in compliance with the License.
9# You may obtain a copy of the License at
10#
11# http://www.apache.org/licenses/LICENSE-2.0
12#
Bartek Grzybowski79bd9e72019-09-30 15:01:16 +020013# Unless required by applicable law or agreed to in writing, software
14# distributed under the License is distributed on an "AS IS" BASIS,
15# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16# See the License for the specific language governing permissions and
17# limitations under the License.
18#
19# COPYRIGHT NOTICE ENDS HERE
Yang Xu21b09c92019-06-13 13:19:20 -040020
Bartek Grzybowski79bd9e72019-09-30 15:01:16 +020021# This script prepares the runtime environment
22# for running vCPE python scripts on Ubuntu 16.04,
23# 18.04 and on Centos/Rhel 7.6.
24
25if command -v apt-get > /dev/null;
26then
27 apt-get update
28 apt-get -y install python gcc python-dev;
29fi
30if command -v yum > /dev/null;
31then
32 yum -y install python-devel gcc;
33fi
34
35curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
36python get-pip.py
37pip install -I \
38 ipaddress \
39 pyyaml \
40 mysql-connector-python \
41 progressbar2 \
42 python-novaclient \
43 python-openstackclient \
44 python-heatclient \
45 kubernetes \
46 netaddr